Commit cb6fa1f4 by 张立顺

fix bug修复

1 parent e834101e
......@@ -20,6 +20,7 @@ import {
setSystem_info,
getNoSignInUuid,
removeSystemStorage,
rmNoSignInUuid
} from "~/utils/cache/storageApi";
setSystem_info(); // 存储设备信息
import { checkYqdSuper, checkScene } from "~/store/index";
......@@ -118,8 +119,12 @@ App({
let res = checkScene(options);
// console.log(res, 'res')
// 如果需要重新登录
res && this.login(true, res);
// 如果需要重新登录 去掉30天免登录逻辑避免自动登录直接跳回到首页去
if (res) {
rmNoSignInUuid()
this.login(true, res);
}
// res &&
}
},
login(relogin, context, RequestMethods) {
......
......@@ -258,12 +258,12 @@ export const checkScene = options => {
// &&options.patch == 'tabIndex/pages/index/index'
// 需要当前门店的 不是就重新登录
// if (userInfo?.subLoginUser?.merchantId != query.merchantId) {
// wx.$SCENE = null
// // return this.login(true)
// // return true // 重新登录
// return '当前登录园区不一致,请重新登录。'
// }
if (userInfo?.subLoginUser?.merchantId != query.merchantId) {
wx.$SCENE = null
// return this.login(true)
// return true // 重新登录
return '当前登录园区不一致,请重新登录。'
}
}
console.log(options.path, 'options.path')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!