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) {