vue2 圆角标签栏

This commit is contained in:
xingyu
2022-12-27 11:18:06 +08:00
parent ab67540d5f
commit d86c36a151
12 changed files with 72 additions and 60 deletions

View File

@ -53,7 +53,6 @@ export default {
}
},
mounted() {
this.insertToBody()
this.addEventClick()
},
beforeDestroy() {
@ -70,11 +69,6 @@ export default {
this.show = false
window.removeEventListener('click', this.closeSidebar)
}
},
insertToBody() {
const elx = this.$refs.rightPanel
const body = document.querySelector('body')
body.insertBefore(elx, body.firstChild)
}
}
}