This commit is contained in:
bb_pan 2025-04-17 11:05:07 +08:00
parent 16bd837711
commit 58f8fbaffa
1 changed files with 3 additions and 3 deletions

View File

@ -112,9 +112,9 @@ service.interceptors.response.use(res => {
if (code === 401) { if (code === 401) {
console.log('🚀 ~ process.env.VUE_APP_BASE_API:', process.env.VUE_APP_BASE_API) console.log('🚀 ~ process.env.VUE_APP_BASE_API:', process.env.VUE_APP_BASE_API)
if (process.env.VUE_APP_BASE_API == '/iws/jiju-api') { if (process.env.VUE_APP_BASE_API == '/iws/jiju-api') {
this.$store.dispatch('LogOut').then(() => { store.dispatch('LogOut').then(() => {
}).catch((err) => { }).catch((err) => {
console.log('🚀 ~ this.$store.dispatch ~ err:', err) console.log('🚀 ~ store.dispatch ~ err:', err)
}) })
setTimeout(() => { setTimeout(() => {
// 'http://sgwpdm.ah.sgcc.com.cn/iws/cas/login?appId=3874dcb953f184dc75450e33d6d6d4fa&service=http://sgwpdm.ah.sgcc.com.cn/iws/mea-view/', // 'http://sgwpdm.ah.sgcc.com.cn/iws/cas/login?appId=3874dcb953f184dc75450e33d6d6d4fa&service=http://sgwpdm.ah.sgcc.com.cn/iws/mea-view/',
@ -123,7 +123,7 @@ service.interceptors.response.use(res => {
) )
}, 500) }, 500)
} else { } else {
this.$store.dispatch('LogOut').then(() => { store.dispatch('LogOut').then(() => {
// location.href = '/login' // location.href = '/login'
router.push('/login') router.push('/login')
}).catch(() => { }).catch(() => {