From 1ab59a859b80e547160525b0a9583e29c3cae8e9 Mon Sep 17 00:00:00 2001 From: chiayin Date: Fri, 23 Feb 2024 17:11:19 +0800 Subject: [PATCH] fix: 404 page back router done. --- src/components/Navbar.vue | 2 ++ src/views/NotFound404.vue | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Navbar.vue b/src/components/Navbar.vue index 7e806a9..faa556e 100644 --- a/src/components/Navbar.vue +++ b/src/components/Navbar.vue @@ -166,6 +166,8 @@ export default { }, getNavViewName() { let name = this.$route.name; + + if(this.$route.name === 'NotFound404') return; this.navViewName = this.$route.matched[1].name.toUpperCase(); this.store.filesTag = 'ALL'; switch (this.navViewName) { diff --git a/src/views/NotFound404.vue b/src/views/NotFound404.vue index 4303204..e6defb2 100644 --- a/src/views/NotFound404.vue +++ b/src/views/NotFound404.vue @@ -8,7 +8,7 @@

404

您想找的頁面不存在

請重新確認搜尋的項目或是回到 Files 頁

- 回到 Files 頁 + 回到 Files 頁