dedsudiyu 2 月之前
父节点
当前提交
26217bc311
共有 2 个文件被更改,包括 5 次插入14 次删除
  1. 3 10
      src/utils/request.js
  2. 2 4
      src/views/courtyardManage/courtyardHome.vue

+ 3 - 10
src/utils/request.js

@@ -1,6 +1,5 @@
 import axios from "axios";
 import { MessageBox, Message, Loading } from 'element-ui'
-import router from '@/router'
 import { getToken,removeToken } from '@/utils/auth'
 import {tansParams,judgmentNetworkReturnAddress} from "@/utils/public";
 
@@ -84,9 +83,7 @@ serviceAxios.interceptors.response.use(res => {
                     if(localStorage.getItem('entranceJumpType') == 'PC'){
                         window.location.href = process.env.VUE_APP_OUT_URL;
                     }else{
-                        router.replace({
-                            path: '/'
-                        })
+                        window.location.href='#/';
                     }
                 }).catch(() => {});
             }
@@ -104,9 +101,7 @@ serviceAxios.interceptors.response.use(res => {
                     if(localStorage.getItem('entranceJumpType') == 'PC'){
                         window.location.href = process.env.VUE_APP_OUT_URL;
                     }else{
-                        router.replace({
-                            path: '/'
-                        })
+                        window.location.href='#/';
                     }
                 }).catch(() => {});
             }
@@ -157,9 +152,7 @@ serviceAxios.interceptors.response.use(res => {
                         if(localStorage.getItem('entranceJumpType') == 'PC'){
                             window.location.href = process.env.VUE_APP_OUT_URL;
                         }else{
-                            router.replace({
-                                path: '/'
-                            })
+                            window.location.href='#/';
                         }
                     }).catch(() => {});
                 }

+ 2 - 4
src/views/courtyardManage/courtyardHome.vue

@@ -254,7 +254,7 @@
 </template>
 
 <script>
-
+    import router from '@/router'
     import {
         getLogoInfo,
         indexListRelease,
@@ -520,9 +520,7 @@
                     if(localStorage.getItem('entranceJumpType') == 'PC'){
                         window.location.href = process.env.VUE_APP_OUT_URL;
                     }else{
-                        router.replace({
-                            path: '/'
-                        })
+                        window.location.href='#/';
                     }
                 }).catch(() => {
                 });