Commit b9c0c3f0 authored by FE-安焕焕's avatar FE-安焕焕 👣

跳转登录

parent de9616ad
......@@ -31,6 +31,7 @@ instance.interceptors.response.use(function (response) {
if(response.status >= 200 && response.status < 300){
let code = response.data&&response.data.body&&response.data.body.code || ''
if (code == '900' || code == '901' || code == '902'){
console.log('----')
if (!store.state.cookieTips && code != '901') {
store.dispatch('cookieTipsShow', true)
Notice.error({render:(h) => {return h('div', {style: {
......@@ -43,7 +44,7 @@ instance.interceptors.response.use(function (response) {
store.dispatch('cookieTipsHide', false)
}, 2000)
}
// router.replace({name: 'login'})
router.replace({name: 'login'})
}
if(response.data.success){
return Promise.resolve(response)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment