1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-07 18:25:45 +08:00

Merge c83e12413b4a907296123da8a746be01515f7797 into 0caa975ee224074c77540107b1fe076081cdf306

This commit is contained in:
ShuQingX 2022-04-21 21:39:51 +08:00 committed by GitHub
commit 960ccb40df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,6 +23,7 @@ export default {
// to fixed bug when cached by keep-alive
// https://github.com/PanJiaChen/vue-element-admin/issues/2116
activated() {
this.resize()
this.$_initResizeEvent()
this.$_initSidebarResizeEvent()
},
@ -50,6 +51,10 @@ export default {
},
$_destroySidebarResizeEvent() {
this.$_sidebarElm && this.$_sidebarElm.removeEventListener('transitionend', this.$_sidebarResizeHandler)
},
resize() {
const { chart } = this
chart && chart.resize()
}
}
}