Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit cb6fa1f4
authored
Aug 23, 2024
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug修复
1 parent
e834101e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
app.js
store/index.js
app.js
View file @
cb6fa1f
...
...
@@ -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
)
{
...
...
store/index.js
View file @
cb6fa1f
...
...
@@ -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'
)
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment