diff --git a/src/store/modules/permission.js b/src/store/modules/permission.js index 7ba3ad3..cbfd4a9 100644 --- a/src/store/modules/permission.js +++ b/src/store/modules/permission.js @@ -152,7 +152,6 @@ const actions = { if (redirectToLogin) { dispatch('ukey/Logout', null, { root: true }).then(res => { console.log('调用天融信单点退出系统 dispatch(ukey/Logout) 方法 res:', res) - if (!res.success) return reset() }) } else { diff --git a/src/store/modules/ukey.js b/src/store/modules/ukey.js index 7c99959..702e1ca 100644 --- a/src/store/modules/ukey.js +++ b/src/store/modules/ukey.js @@ -87,12 +87,17 @@ const actions = { Logout() { return new Promise((resolve, reject) => { // 调用天融信单点退出系统 - const trxToken = getTrxToken() - if (!trxToken) reject(new Error('未找到 trxToken')) console.log('开始调用天融信 offlineToken') + const trxToken = getTrxToken() + if (!trxToken) { + console.log('调用天融信登出接口,没有获取到 trxToken') + resolve({ + success: false + }) + return + } offlineToken(trxToken).then( res => { - console.log('调用天融信单点退出系统', res) resolve(res) }, err => {