Merge pull request '跳转' (#184) from xbx into master

Reviewed-on: http://git.luyuan.tk/luyuan/beelink/pulls/184
This commit is contained in:
luyuan 2020-11-30 14:34:44 +08:00
commit d9d16cc239

View File

@ -1,7 +1,7 @@
import axios from '../config/axiosConfig' import axios from '../config/axiosConfig'
import { AxiosRequestConfig, CustomSuccessData } from 'axios'; import { AxiosRequestConfig, CustomSuccessData } from 'axios';
import { getValue } from '@/utils/common'; import { getValue, toindex } from '@/utils/common';
import { message } from 'ant-design-vue'; import { message } from 'ant-design-vue';
import router from '@/router'; import router from '@/router';
import { MessageType } from 'ant-design-vue/types/message'; import { MessageType } from 'ant-design-vue/types/message';
@ -57,7 +57,7 @@ axios.interceptors.response.use((response)=>{
if(response.data.code == 1001){ if(response.data.code == 1001){
store.commit("login", false) store.commit("login", false)
router.push("/") toindex();
} }
return response; return response;
},(error)=>{ },(error)=>{