diff --git a/src/App.vue b/src/App.vue index 920f8c81..d42af001 100644 --- a/src/App.vue +++ b/src/App.vue @@ -47,10 +47,10 @@ + + diff --git a/src/utils/request.js b/src/utils/request.js index e5b4c5ff..8af01cc0 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -69,14 +69,15 @@ service.interceptors.response.use(res => { }) .then(() => { store.dispatch('LogOut').then(() => { + console.log(window.location.href); if(window.location.href.indexOf('lawEnforcement') != -1){ - location.href = '/lawEnforcement/login'; - } else if ('/authenticRight/index'.indexOf(to.path) !== -1) { - location.href = '/authenticRight/login'; - } else if ('/homestead/index'.indexOf(to.path) !== -1) { - location.href = '/homestead/login'; + window.location.href = '/lawEnforcement/login'; + } else if (window.location.href.indexOf('authenticRight') != -1) { + window.location.href = '/authenticRight/login'; + } else if (window.location.href.indexOf('homesteadSurvey')!= -1) { + window.location.href = '/homesteadLogin'; } else { - location.href = '/index'; + window.location.href = '/index'; } }) }) diff --git a/src/views/homesteadLogin.vue b/src/views/homesteadLogin.vue index 2f97b277..dec02679 100644 --- a/src/views/homesteadLogin.vue +++ b/src/views/homesteadLogin.vue @@ -3,11 +3,11 @@
-

农村宅基地测量

+

农村宅基地调查

-
-
-
@@ -340,6 +340,6 @@ export default { diff --git a/src/views/homesteadSurvey/add.vue b/src/views/homesteadSurvey/add.vue index 927a21fe..8da7f7a0 100644 --- a/src/views/homesteadSurvey/add.vue +++ b/src/views/homesteadSurvey/add.vue @@ -8,9 +8,9 @@ -