| | |
| | | case 504: |
| | | break |
| | | case 401: |
| | | uni.removeStorageSync(ACCESS_TOKEN); // 清除 token |
| | | uni.showModal({ |
| | | title: '提示', |
| | | content: '登录超时,需要重新登录!', |
| | |
| | | success: (res) => { |
| | | if (res.confirm) { |
| | | uni.reLaunch({ |
| | | url: '/pages/login/login' |
| | | }) |
| | | url: '/pages/login/loginOauth2' |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | break |
| | | break; |
| | | |
| | | // case 401: |
| | | // uni.showModal({ |
| | | // title: '提示', |
| | | // content: '登录超时,需要重新登录!', |
| | | // showCancel: false, |
| | | // success: (res) => { |
| | | // if (res.confirm) { |
| | | // uni.reLaunch({ |
| | | // url: '/pages/login/login' |
| | | // }) |
| | | // } |
| | | // } |
| | | // }); |
| | | // break |
| | | default: |
| | | tip.error({ |
| | | duration: 0, |