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)