提交404
This commit is contained in:
parent
cac3f19080
commit
efac688b25
|
|
@ -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()
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue