Explorar o código

商城跳转

1
mo %!s(int64=4) %!d(string=hai) anos
pai
achega
95cf08870f
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/utils/request.js

+ 2 - 1
src/utils/request.js

@@ -45,7 +45,8 @@ service.interceptors.response.use(
           type: 'warning'
         }).then(() => {
           store.dispatch('FedLogOut').then(() => {
-            location.reload()// 为了重新实例化vue-router对象 避免bug
+            // location.reload()// 为了重新实例化vue-router对象 避免bug
+            location.href = window.location.hostname;
           })
         })
       }