From 35d31ef32ce012274d066e86db6667b36de7b1af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=B6=E5=90=AF=E9=BE=99?= Date: Mon, 26 Aug 2024 17:25:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BA=91=E7=AE=A1=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E7=9B=B4=E6=8E=A5=E4=B8=8D=E4=BC=A0trxToken?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/components/personal/useTokenAndLock.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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')