Commit 7a5690f9 authored by 罗超's avatar 罗超

调整BUG

parent 2c8d141f
......@@ -58,7 +58,7 @@
"quickapp" : {},
/* 快应用特有相关 */
"mp-weixin" : {
"appid" : "wx10655d8e5b0a67c5",
"appid" : "13982128958",
"setting" : {
"urlCheck" : false,
"es6" : false,
......
......@@ -333,16 +333,17 @@
uni.setStorageSync('erpUserInfo',res.Data)
}
uni.setStorageSync('ErpStus',erpStus)
if(uni.getStorageSync('users')){
let users=[]
user.push(uni.getStorageSync('userInfo'))
uni.setStorageSync('users',user)
}
// if(uni.getStorageSync('users')){
// let users=[]
// users.push(uni.getStorageSync('userInfo'))
// uni.setStorageSync('users',users)
// }
data.loading = true
uni.reLaunch({
url:'/pages/index/index'
})
}else{
console.log('..........22')
data.loading = true
uni.hideLoading()
uni.showToast({
......@@ -351,6 +352,7 @@
})
}
}).catch(e=>{
console.log(e+"...........")
data.loading = true
uni.hideLoading()
uni.showToast({
......
......@@ -26,7 +26,7 @@ let request = (param) => {
resolve(res.data)
} else {
if (res.data.Code==10001 || res.data.Code == 10000) {
if(!uni.getStorageSync('erpUserInfo')){
if(!uni.getStorageSync('erpUserInfo') || (uni.getStorageSync('erpUserInfo') && uni.getStorageSync('userInfo'))){
console.log('in....')
uni.showToast({
title: "用户凭证失效,请重新授权",
......
......@@ -27,7 +27,7 @@ let request = (param) => {
resolve(res.data)
} else {
if (res.data.Code == 10001 || res.data.Code == 10000) {
if(!uni.getStorageSync('userInfo')){
if(!uni.getStorageSync('userInfo')|| (uni.getStorageSync('erpUserInfo') && uni.getStorageSync('userInfo'))){
uni.reLaunch({
url:"/pages/login/login"
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment