提交404

This commit is contained in:
zouzhibin 2022-05-01 23:10:46 +08:00
parent cac3f19080
commit efac688b25
2 changed files with 6 additions and 3 deletions

View File

@ -147,8 +147,11 @@
})
router.beforeEach(async (to, from, next)=>{
if(from.fullPath==='/error/404'&&to.fullPath==="/home") {
await store.dispatch('tagsView/removeView', [from.fullPath])
if((from.fullPath==='/error/404'||from.fullPath==='/error/401')&&to.fullPath==="/home") {
let whiteList = ['/error/404','/error/401']
await store.dispatch('tagsView/removeView', whiteList)
}
next()
})

View File

@ -34,7 +34,7 @@
<div>---------- 开心最重要</div>
<el-divider></el-divider>
<div style="margin-bottom: 15px"><h5>如果对你有帮助的话可以麻烦点一颗 star!</h5></div>
<div style="margin-bottom: 15px"><h5>如果对你有帮助的话可以麻烦点一颗 star!</h5></div>
</div>
</el-card>
</el-col>