修复关闭左侧标签报错问题
This commit is contained in:
@ -132,6 +132,7 @@ const useTagsViewStore = defineStore(
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
delLeftTags(view) {
|
delLeftTags(view) {
|
||||||
|
return new Promise(resolve => {
|
||||||
const index = this.visitedViews.findIndex(v => v.path === view.path)
|
const index = this.visitedViews.findIndex(v => v.path === view.path)
|
||||||
if (index === -1) {
|
if (index === -1) {
|
||||||
return
|
return
|
||||||
@ -146,6 +147,8 @@ const useTagsViewStore = defineStore(
|
|||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
})
|
})
|
||||||
|
resolve([...this.visitedViews])
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user