This commit is contained in:
bb_pan 2025-04-17 10:55:10 +08:00
parent 42981e127e
commit 16bd837711
1 changed files with 4 additions and 2 deletions

View File

@ -7,6 +7,8 @@ import { tansParams, blobValidate } from '@/utils/bonus'
import cache from '@/plugins/cache'
import { saveAs } from 'file-saver'
import { decryptWithSM4, encryptWithSM4, hashWithSM3AndSalt } from '@/utils/sm'
import router from '@/router'
const systemConfig = JSON.parse(localStorage.getItem('systemConfig')) || {
requestConfig: { encryptRequest: false, checkIntegrity: false, encryptResponse: false }
};
@ -123,9 +125,9 @@ service.interceptors.response.use(res => {
} else {
this.$store.dispatch('LogOut').then(() => {
// location.href = '/login'
this.$router.push('/login')
router.push('/login')
}).catch(() => {
this.$router.push('/login')
router.push('/login')
})
}
return Promise.reject('无效的会话,或者会话已过期,请重新登录。')