mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 19:35:50 +00:00
fix: 子窗口出现重新登录的情况
This commit is contained in:
parent
285a62c87e
commit
d00cd5cb26
10
resources/assets/js/store/actions.js
vendored
10
resources/assets/js/store/actions.js
vendored
@ -52,13 +52,9 @@ export default {
|
||||
}
|
||||
const localId = $A.runNum(window.localStorage.getItem("__system:userId__"))
|
||||
const localToken = window.localStorage.getItem("__system:userToken__") || ""
|
||||
if (localId || localToken) {
|
||||
if (!state.userId && !state.userToken) {
|
||||
state.userId = localId
|
||||
state.userToken = localToken
|
||||
}
|
||||
window.localStorage.removeItem("__system:userId__")
|
||||
window.localStorage.removeItem("__system:userToken__")
|
||||
if (state.userId === 0 && localId && localToken) {
|
||||
state.userId = localId
|
||||
state.userToken = localToken
|
||||
}
|
||||
|
||||
// ServerUrl
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user