From 57ea72c3d7e7c1b5cc75ee5575dc6565c0dc1156 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=B6=E5=90=AF=E9=BE=99?= Date: Fri, 23 Aug 2024 16:45:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=B7=E6=96=B0=20token=20=E6=97=B6?= =?UTF-8?q?=E4=B9=9F=E8=A6=81=E5=A2=9E=E5=8A=A0=E5=A4=A9=E8=9E=8D=E4=BF=A1?= =?UTF-8?q?=20token?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/components/personal/useTokenAndLock.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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')