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