钞小赢 5 years ago
parent
commit
1f58c6dde1
1 changed files with 2 additions and 5 deletions
  1. 2 5
      shanXiPlatform/src/utils/request.js

+ 2 - 5
shanXiPlatform/src/utils/request.js

@@ -3,10 +3,7 @@ import { MessageBox, Message } from 'element-ui'
3 3
 import store from '@/store'
4 4
 import { getToken } from '@/utils/auth'
5 5
 import { closenewWebSocket, newWebSocket } from '@/api/sendMessageSocket'
6
-//1.引入vue
7
-import Vue from 'vue';
8
-//2.新创建一个vue实例
9
-let v = new Vue();
6
+
10 7
 
11 8
 // create an axios instance
12 9
 const service = axios.create({
@@ -149,7 +146,7 @@ service.interceptors.response.use(
149 146
      
150 147
       store.state.isAuthority = false;
151 148
     
152
-      v.$alert('身份失效,请重新登录', '确认退出', {
149
+      MessageBox.alert('身份失效,请重新登录', '确认退出', {
153 150
         confirmButtonText: '确定',
154 151
         callback:()=>{
155 152