fix: 增加日志

develop
时启龙 2024-08-30 09:10:32 +08:00
parent a2ed3fd3a7
commit 0229887d14
2 changed files with 3 additions and 3 deletions

View File

@ -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()
})

View File

@ -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)