From c83e12413b4a907296123da8a746be01515f7797 Mon Sep 17 00:00:00 2001 From: shuqingXu Date: Sat, 28 Nov 2020 17:14:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20dashboard=E9=A1=B5=E9=9D=A2=20=E5=B0=8F?= =?UTF-8?q?=E5=B1=8F=E6=97=B6=E5=88=87=E6=8D=A2=E5=85=B6=E4=BB=96=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2,=20=E5=A4=A7=E5=B1=8F=E5=90=8E=E5=9C=A8=E5=88=87?= =?UTF-8?q?=E5=9B=9E=20dashboard=E9=A1=B5=E9=9D=A2=20=E5=9B=BE=E8=A1=A8res?= =?UTF-8?q?ize=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dashboard/admin/components/mixins/resize.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/views/dashboard/admin/components/mixins/resize.js b/src/views/dashboard/admin/components/mixins/resize.js index 234953b1..7392e7b8 100644 --- a/src/views/dashboard/admin/components/mixins/resize.js +++ b/src/views/dashboard/admin/components/mixins/resize.js @@ -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() } } }