mo 5 years ago
parent
commit
db4203ecc1
1 changed files with 2 additions and 3 deletions
  1. 2 3
      src/utils/request.js

+ 2 - 3
src/utils/request.js

@@ -5,7 +5,7 @@ import store from '@/store'
 import { getToken } from '@/utils/auth'
 // import { Loading } from 'element-ui'
 import load from '@/utils/loading'
-import router from '@/router/index' 
+import router from '@/router/index'
 import Vue from 'vue'
 const showMessage = Symbol('showMessage')
 class DonMessage {
@@ -127,10 +127,9 @@ service.interceptors.response.use(
             location.reload()
           })
         }, 1000);
-
         return;
       }
-      if(data.code == 404) {
+      if (data.code == 404) {
         router.push('/404')
       }
       if (data.code != 200) {