From 846b267e6491c5237011dace4b0b0caae8ed84af Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Tue, 27 Aug 2019 16:45:43 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=BB=A3=E7=A0=81=EF=BC=9A?= =?UTF-8?q?=20ibp=E7=9B=98=E5=AE=BD=E9=AB=98=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ibp/ibpDraft/ibpEdit/index.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/views/ibp/ibpDraft/ibpEdit/index.vue b/src/views/ibp/ibpDraft/ibpEdit/index.vue index 18079b4ee..eb7f642bb 100644 --- a/src/views/ibp/ibpDraft/ibpEdit/index.vue +++ b/src/views/ibp/ibpDraft/ibpEdit/index.vue @@ -29,7 +29,6 @@ data() { return { mapSaveing: false, - cardHeight: 400, viewDraft: 'draft', autoSaveTask: null, selected: null, @@ -48,8 +47,12 @@ }, methods: { - resizeHandler: function () { - this.cardHeight = this._clientHeight - 195; + resizeHandler() { + this._clientWidth = this._clientWidth || document.documentElement.clientWidth; + this._clientHeight = this._clientHeight || document.documentElement.clientHeight; + const width = this._clientWidth - 521; + const height = this._clientHeight; + this.$store.dispatch('config/resize', { width: width, height: height }); }, endViewLoading(isSuccess) {