From 7f33b1a081ed4a238111508d1730abb12ed5cd2a Mon Sep 17 00:00:00 2001 From: zhouzy062 Date: Thu, 7 Mar 2024 10:44:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sgzb-ui/src/layout/components/Navbar.vue | 2 +- sgzb-ui/src/permission.js | 2 +- sgzb-ui/src/utils/request.js | 2 +- sgzb-ui/src/views/claimAndRefund/receive/receiveApply.vue | 1 - sgzb-ui/src/views/claimAndRefund/receive/receiveApplyAdd.vue | 2 +- 5 files changed, 4 insertions(+), 5 deletions(-) diff --git a/sgzb-ui/src/layout/components/Navbar.vue b/sgzb-ui/src/layout/components/Navbar.vue index 1ca2d4a2..cf315c34 100644 --- a/sgzb-ui/src/layout/components/Navbar.vue +++ b/sgzb-ui/src/layout/components/Navbar.vue @@ -103,7 +103,7 @@ export default { type: 'warning' }).then(() => { this.$store.dispatch('LogOut').then(() => { - location.href = '/index'; + location.href = '/login'; }) }).catch(() => {}); } diff --git a/sgzb-ui/src/permission.js b/sgzb-ui/src/permission.js index eb62d4e0..1ccc6407 100644 --- a/sgzb-ui/src/permission.js +++ b/sgzb-ui/src/permission.js @@ -32,7 +32,7 @@ router.beforeEach((to, from, next) => { }).catch(err => { store.dispatch('LogOut').then(() => { Message.error(err) - next({ path: '/' }) + next({ path: '/login' }) }) }) } else { diff --git a/sgzb-ui/src/utils/request.js b/sgzb-ui/src/utils/request.js index ffb0d219..f09c940a 100644 --- a/sgzb-ui/src/utils/request.js +++ b/sgzb-ui/src/utils/request.js @@ -87,7 +87,7 @@ service.interceptors.response.use(res => { MessageBox.confirm('登录状态已过期,您可以继续留在该页面,或者重新登录', '系统提示', { confirmButtonText: '重新登录', cancelButtonText: '取消', type: 'warning' }).then(() => { isRelogin.show = false; store.dispatch('LogOut').then(() => { - location.href = '/index'; + location.href = '/login'; }) }).catch(() => { isRelogin.show = false; diff --git a/sgzb-ui/src/views/claimAndRefund/receive/receiveApply.vue b/sgzb-ui/src/views/claimAndRefund/receive/receiveApply.vue index e646ba2d..4c0d6965 100644 --- a/sgzb-ui/src/views/claimAndRefund/receive/receiveApply.vue +++ b/sgzb-ui/src/views/claimAndRefund/receive/receiveApply.vue @@ -304,7 +304,6 @@ export default { query:{ taskId:row.taskId, isEdit:true, - isBack:false, } }) }, diff --git a/sgzb-ui/src/views/claimAndRefund/receive/receiveApplyAdd.vue b/sgzb-ui/src/views/claimAndRefund/receive/receiveApplyAdd.vue index 1f6b1232..fc2da1c2 100644 --- a/sgzb-ui/src/views/claimAndRefund/receive/receiveApplyAdd.vue +++ b/sgzb-ui/src/views/claimAndRefund/receive/receiveApplyAdd.vue @@ -344,7 +344,7 @@ export default { this.GetDeviceTypeTree() // this.getList(); - if(this.$route.query.taskId&&!this.$route.query.isBack){ + if(this.$route.query.taskId){ this.GetTaskDetail(this.$route.query.taskId) } if(this.$route.query.taskId&&this.$route.query.isBack){