调整登录逻辑退出登录调整拦截器新增路由通配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'})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
21
apis/interfaces/wx.js
Normal file
21
apis/interfaces/wx.js
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user