diff --git a/src/layouts/components/personal/useTokenAndLock.ts b/src/layouts/components/personal/useTokenAndLock.ts index 6ec0998..f4dad7e 100644 --- a/src/layouts/components/personal/useTokenAndLock.ts +++ b/src/layouts/components/personal/useTokenAndLock.ts @@ -3,7 +3,7 @@ import { useStore } from 'vuex' import { useRouter, useRoute } from 'vue-router' import { getClientHello } from 'services/ukeyAuth.js' import { replaceToken } from 'services' -import { getToken, getUkeyPassword } from 'utils/auth' +import { getToken, getTrxToken, getUkeyPassword } from 'utils/auth' export default function () { const store = useStore() @@ -22,7 +22,8 @@ export default function () { // 获取最新token async function getLastToken() { const token = getToken() - const res = await replaceToken({ token }) + const trxToken = getTrxToken() + const res = await replaceToken({ token, trxToken }) if (!res.success) { clearTimer() store.dispatch('permission/ResetRoutes')