调整代码: ibp盘宽高显示

This commit is contained in:
fan 2019-08-27 16:45:43 +08:00
parent 8b67b34df8
commit 846b267e64

View File

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