fix: 云管用户登录直接不传trxToken

develop
时启龙 2024-08-26 17:25:36 +08:00
parent cbfa87d1b1
commit 35d31ef32c
1 changed files with 7 additions and 1 deletions

View File

@ -23,7 +23,13 @@ export default function () {
async function getLastToken() { async function getLastToken() {
const token = getToken() const token = getToken()
const trxToken = getTrxToken() 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) { if (!res.success) {
clearTimer() clearTimer()
store.dispatch('permission/ResetRoutes') store.dispatch('permission/ResetRoutes')