|
@@ -33,7 +33,7 @@ export const myRequest = (options) => {
|
|
|
},
|
|
|
success: async (res) => {
|
|
|
if (res.data.code == 401) {
|
|
|
- if (num <= 3) {
|
|
|
+ if (num <= 2) {
|
|
|
if (!uni.getStorageSync('user_account')) {
|
|
|
uni.navigateTo({
|
|
|
url: '/pages/login/login'
|
|
@@ -43,7 +43,9 @@ export const myRequest = (options) => {
|
|
|
res = await doRequest(options)
|
|
|
}
|
|
|
|
|
|
- };
|
|
|
+ }else{
|
|
|
+ uni.removeStorageSync('user_account')
|
|
|
+ }
|
|
|
}
|
|
|
resolve(res)
|
|
|
},
|