From 0229887d14d4e714b60f522800f7d8730adbe9b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=B6=E5=90=AF=E9=BE=99?= Date: Fri, 30 Aug 2024 09:10:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A2=9E=E5=8A=A0=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/permission.js | 2 ++ src/store/modules/ukey.js | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/store/modules/permission.js b/src/store/modules/permission.js index 4432e70..7ba3ad3 100644 --- a/src/store/modules/permission.js +++ b/src/store/modules/permission.js @@ -148,8 +148,10 @@ const actions = { resolve() } // 调用天融信单点退出系统 + console.log('调用天融信单点退出系统 ResetRoutes 方法', redirectToLogin) if (redirectToLogin) { dispatch('ukey/Logout', null, { root: true }).then(res => { + console.log('调用天融信单点退出系统 dispatch(ukey/Logout) 方法 res:', res) if (!res.success) return reset() }) diff --git a/src/store/modules/ukey.js b/src/store/modules/ukey.js index f68d48d..7c99959 100644 --- a/src/store/modules/ukey.js +++ b/src/store/modules/ukey.js @@ -86,12 +86,10 @@ const actions = { // 退出系统 Logout() { return new Promise((resolve, reject) => { - resolve({ - success: true - }) // 调用天融信单点退出系统 const trxToken = getTrxToken() if (!trxToken) reject(new Error('未找到 trxToken')) + console.log('开始调用天融信 offlineToken') offlineToken(trxToken).then( res => { console.log('调用天融信单点退出系统', res)