From 24c15a0101ee51977eb43ec096c89ae6c9205de4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=AE=8F=E6=9D=B0?= <1943105267@qq.com> Date: Tue, 29 Oct 2024 17:18:02 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=90=E5=88=B6=E9=9D=9E=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=91=98/=E9=A2=86=E5=AF=BC/=E5=B0=8F=E5=8C=BA=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=91=98=E4=BA=BA=E5=91=98=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/index.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/index.vue b/src/views/index.vue index bda553a..eebc770 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -16,9 +16,7 @@ export default { this.$router.replace({ path: "/shequ", }); - return; - } - if (this.$auth.hasRole("xiaoqu")) { + } else if (this.$auth.hasRole("xiaoqu")) { if (this.dept.parentId == 238) { this.$router.replace({ path: "/shequ", @@ -30,8 +28,10 @@ export default { query: { xiaoquId: this.dept.deptId }, }); } - - return; + } else { + this.$router.replace({ + path: "/404", + }); } }, };