修复切换组件时,数据的设置数据不更新的问题

This commit is contained in:
aixianling
2024-02-28 15:08:09 +08:00
parent 8a1fa07e9b
commit 13b779ff3e
3 changed files with 40 additions and 47 deletions

View File

@@ -85,7 +85,7 @@
@dragstop="(x, y) => onDrag(x, y,item)"
@resizestop="(x, y, w, h) => onResizing(x, y, w, h, item)"
@activated="onActivated(index)"
@click.native.stop="activeIndex = index"
@click.native.stop
v-for="(item, index) in componentList"
:key="index">
<div class="coordinate" v-show="activeIndex === index">
@@ -237,7 +237,7 @@ import {mapActions} from "vuex"
import Vue from "vue";
export default {
name: "designDashboard",
name: "viewport",
provide() {
return {
setCurLayer: this.setCurLayer