src/views/home/widgets/index.vue
@@ -111,6 +111,7 @@ this.getWorkbenchCarList(); }, mounted() { console.log(this.allComps,this.element,this.grid.layout) this.$emit('on-mounted') }, computed: { @@ -166,6 +167,7 @@ this.$CONFIG.DEFAULT_GRID.copmsList[index] = [item.cardKey]; this.$CONFIG.DEFAULT_GRID.layout[index] = item.cardWide * 2; }) this.$CONFIG.DEFAULT_GRID.data = cards; this.defaultGrid = this.$CONFIG.DEFAULT_GRID; this.grid = this.$TOOL.data.get("grid") || JSON.parse(JSON.stringify(this.defaultGrid)) }