项管首页
This commit is contained in:
@@ -161,6 +161,10 @@ export default {
|
||||
}
|
||||
},
|
||||
closeSelectedTag(view) {
|
||||
// 如果只有一个标签且该标签不是固定标签,则不允许关闭
|
||||
if (this.visitedViews.length === 1 && !this.isAffix(view)) {
|
||||
return
|
||||
}
|
||||
this.$tab.closePage(view).then(({ visitedViews }) => {
|
||||
if (this.isActive(view)) {
|
||||
this.toLastView(visitedViews, view)
|
||||
|
||||
Reference in New Issue
Block a user