调整登录逻辑退出登录调整拦截器新增路由通配404也买呢

This commit is contained in:
唐明明
2021-09-28 17:14:21 +08:00
parent e9343f9085
commit 730187e1d2
45 changed files with 598 additions and 426 deletions

View File

@@ -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'})
}
})
}

21
apis/interfaces/wx.js Normal file
View File

@@ -0,0 +1,21 @@
/**
* Web唐明明
* 匆匆数载恍如梦,岁月迢迢华发增。
* 碌碌无为枉半生,一朝惊醒万事空。
* moduleName: 微信相关
*/
import { request } from '../index'
const wxConfig = data => {
return request({
url : 'user/auth/get_jssdk',
data : data
})
}
export {
wxConfig
}