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