From 9140c41a15aeb7e06f213019df312384e01973b0 Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 2 Jul 2024 09:16:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:404=E8=BF=94=E5=9B=9E=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/other/404.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/layout/other/404.vue b/src/layout/other/404.vue index f1ac3902..1647130d 100644 --- a/src/layout/other/404.vue +++ b/src/layout/other/404.vue @@ -17,8 +17,14 @@ export default { methods: { gohome(){ - location.href="#/" - }, + let base_dashboard = this.$TOOL.data.get('BASE_INFO').base.base_dashboard; + if (base_dashboard == null || base_dashboard == undefined) { + base_dashboard = '/dashboard' + } + this.$router.replace({ + path: base_dashboard, + }); + }, goback(){ this.$router.go(-1); },