diff --git a/src/layouts/components/personal/useTokenAndLock.ts b/src/layouts/components/personal/useTokenAndLock.ts index f4dad7e..682f434 100644 --- a/src/layouts/components/personal/useTokenAndLock.ts +++ b/src/layouts/components/personal/useTokenAndLock.ts @@ -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')