|
@@ -40,16 +40,6 @@ service.interceptors.response.use(response => {
|
|
|
//接收到响应数据并成功后的一些共有的处理,关闭loading等
|
|
|
store.state.loadding = false; //在这里对返回的数据进行处理
|
|
|
console.log(response.data)
|
|
|
- if (router.history.current.name === 'quickChat' || router.history.current.name === 'chat') {
|
|
|
- if (response.data.code === -1) {
|
|
|
- return Message.error('对话框凭证已过期,请重新打开对话框!')
|
|
|
- }
|
|
|
- } else {
|
|
|
- if (response.data.code === -1) {
|
|
|
- router.push({path:'/'})
|
|
|
- return Message.error('登陆状态已过期,请重新登陆!')
|
|
|
- }
|
|
|
- }
|
|
|
return response.data;
|
|
|
}, error => {
|
|
|
console.log(error)
|