mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-10 20:39:48 +08:00
Merge c83e12413b4a907296123da8a746be01515f7797 into 0caa975ee224074c77540107b1fe076081cdf306
This commit is contained in:
commit
960ccb40df
@ -23,6 +23,7 @@ export default {
|
|||||||
// to fixed bug when cached by keep-alive
|
// to fixed bug when cached by keep-alive
|
||||||
// https://github.com/PanJiaChen/vue-element-admin/issues/2116
|
// https://github.com/PanJiaChen/vue-element-admin/issues/2116
|
||||||
activated() {
|
activated() {
|
||||||
|
this.resize()
|
||||||
this.$_initResizeEvent()
|
this.$_initResizeEvent()
|
||||||
this.$_initSidebarResizeEvent()
|
this.$_initSidebarResizeEvent()
|
||||||
},
|
},
|
||||||
@ -50,6 +51,10 @@ export default {
|
|||||||
},
|
},
|
||||||
$_destroySidebarResizeEvent() {
|
$_destroySidebarResizeEvent() {
|
||||||
this.$_sidebarElm && this.$_sidebarElm.removeEventListener('transitionend', this.$_sidebarResizeHandler)
|
this.$_sidebarElm && this.$_sidebarElm.removeEventListener('transitionend', this.$_sidebarResizeHandler)
|
||||||
|
},
|
||||||
|
resize() {
|
||||||
|
const { chart } = this
|
||||||
|
chart && chart.resize()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user