fix: 云管用户登录直接不传trxToken
parent
cbfa87d1b1
commit
35d31ef32c
|
@ -23,7 +23,13 @@ export default function () {
|
|||
async function getLastToken() {
|
||||
const token = getToken()
|
||||
const trxToken = getTrxToken()
|
||||
const res = await replaceToken({ token, trxToken })
|
||||
const params: any = {
|
||||
token
|
||||
}
|
||||
if (trxToken) {
|
||||
params.trxToken = trxToken
|
||||
}
|
||||
const res = await replaceToken(params)
|
||||
if (!res.success) {
|
||||
clearTimer()
|
||||
store.dispatch('permission/ResetRoutes')
|
||||
|
|
Loading…
Reference in New Issue