fix: 404 page back router done.

This commit is contained in:
chiayin
2024-02-23 17:11:19 +08:00
parent ffd13ad1f7
commit 1ab59a859b
2 changed files with 3 additions and 1 deletions

View File

@@ -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) {

View File

@@ -8,7 +8,7 @@
<h2 class="mb-7">404</h2>
<p>您想找的頁面不存在</p>
<p class="mb-7">請重新確認搜尋的項目或是回到 Files </p>
<router-link :to="'/files'" class="btn btn-c-primary btn-lg">回到 Files </router-link>
<router-link to="/files" class="btn btn-c-primary btn-lg">回到 Files </router-link>
</div>
</main>
</template>