From 9397d3dbf12d3ad2862b19de6c3bdd6db3e49836 Mon Sep 17 00:00:00 2001 From: haozq <1611483981@qq.com> Date: Mon, 14 Oct 2024 09:36:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/permission.js | 4 +- src/utils/request.js | 2 +- src/views/base/bracelet/index.vue | 159 +++++++++++++++++------------- 3 files changed, 92 insertions(+), 73 deletions(-) diff --git a/src/permission.js b/src/permission.js index 4aaf40e..c586092 100644 --- a/src/permission.js +++ b/src/permission.js @@ -16,7 +16,7 @@ router.beforeEach((to, from, next) => { to.meta.title && store.dispatch('settings/setTitle', to.meta.title) /* has token*/ if (to.path === '/login') { - next({ path: '/' }) + next({ path: '/zhgd-ht/' }) NProgress.done() } else if (whiteList.indexOf(to.path) !== -1) { next() @@ -34,7 +34,7 @@ router.beforeEach((to, from, next) => { }).catch(err => { store.dispatch('LogOut').then(() => { Message.error(err) - next({ path: '/zhgd-ht' }) + next({ path: '/zhgd-ht/' }) }) }) } else { diff --git a/src/utils/request.js b/src/utils/request.js index 851149b..cd8f357 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -136,7 +136,7 @@ service.interceptors.response.use(res => { MessageBox.confirm('登录状态已过期,您可以继续留在该页面,或者重新登录', '系统提示', { confirmButtonText: '重新登录', cancelButtonText: '取消', type: 'warning' }).then(() => { isRelogin.show = false; store.dispatch('LogOut').then(() => { - location.href = '/zhgd-ht'; + location.href = '/zhgd-ht/'; }) }).catch(() => { isRelogin.show = false; diff --git a/src/views/base/bracelet/index.vue b/src/views/base/bracelet/index.vue index bedd431..c232fd6 100644 --- a/src/views/base/bracelet/index.vue +++ b/src/views/base/bracelet/index.vue @@ -48,7 +48,7 @@ 重置 - + 导出数据 - + - + @@ -86,7 +86,7 @@ - {{ scope.row.shboxName }} + {{ scope.row.shboxName }} - + - + - - - + + + + + @@ -170,7 +177,7 @@ {{ scope.row.shboxBindNum }}/{{ scope.row.shboxCapacity }} - + @@ -217,7 +224,7 @@ {{ scope.row.shboxBindNum }}/{{ scope.row.shboxCapacity }} - + @@ -244,12 +251,19 @@ - - + + + + @@ -259,7 +273,7 @@ {{ scope.row.shboxBindNum }}/{{ scope.row.shboxCapacity }} - + @@ -355,7 +369,7 @@ - + - - + - - - - + + + + - - - - + + + + - - - - - + - - + +