调整登录逻辑退出登录调整拦截器新增路由通配404也买呢
This commit is contained in:
@@ -9,8 +9,11 @@ import store from '@/store'
|
||||
|
||||
// 基础配置
|
||||
const config = {
|
||||
// apiUrl : 'https://oapi.lianshang.vip/api/',
|
||||
// apiUrls : 'https://oapi.lianshang.vip/',
|
||||
|
||||
apiUrl : 'http://api.ahxh.shangkelian.cn/api/',
|
||||
apiUrls : 'http://api.ahxh.shangkelian.cn',
|
||||
apiUrls : 'http://api.ahxh.shangkelian.cn/',
|
||||
timeout : 60000
|
||||
}
|
||||
|
||||
@@ -142,13 +145,11 @@ const loginHint = () => {
|
||||
uni.showModal({
|
||||
title: '登录提示',
|
||||
content: '您的登录信息已过期,请重新登录',
|
||||
confirmColor: '#009B69',
|
||||
confirmColor: '#8b64fd',
|
||||
showCancel:false,
|
||||
success: res=> {
|
||||
loginHintState = false
|
||||
if (res.confirm) uni.reLaunch({
|
||||
url: '/pages/equity/index'
|
||||
})
|
||||
if (res.confirm) this.$Router.replace({name: 'Index'})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user