修正生命周期钩子,将beforeDestroy更改为beforeUnmount (#738) (#742)

优化将beforeDestroy更改为beforeUnmount
This commit is contained in:
奇淼(piexlmax
2021-09-26 11:37:19 +08:00
committed by GitHub
parent d4914d6eca
commit 8cc56c7db5
5 changed files with 5 additions and 5 deletions
@@ -51,7 +51,7 @@ export default {
this.initChart()
})
},
beforeDestroy() {
beforeUnmount() {
if (!this.chart) {
return
}