fix: 404 page back router done.
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user