perf: 优化 TagsView (#123)
This commit is contained in:
parent
6b62edc323
commit
07f321ecbb
@ -152,7 +152,7 @@ const closeMenu = () => {
|
||||
/** 监听路由变化 */
|
||||
listenerRouteChange((route) => {
|
||||
addTags(route)
|
||||
})
|
||||
}, true)
|
||||
|
||||
watch(visible, (value) => {
|
||||
value ? document.body.addEventListener("click", closeMenu) : document.body.removeEventListener("click", closeMenu)
|
||||
@ -160,7 +160,6 @@ watch(visible, (value) => {
|
||||
|
||||
onMounted(() => {
|
||||
initTags()
|
||||
addTags(route)
|
||||
})
|
||||
</script>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user