This commit is contained in:
yanran200730
2022-06-27 09:43:01 +08:00
parent a3cb513b57
commit b5ae298ee9
3 changed files with 13 additions and 5 deletions

View File

@@ -91,7 +91,7 @@
<div class="coordinate-top"></div> <div class="coordinate-top"></div>
<div class="coordinate-label">{{ item.left }}, {{ item.top }}</div> <div class="coordinate-label">{{ item.left }}, {{ item.top }}</div>
</div> </div>
<ai-dv-render :data="item" :theme="dashboard.theme" :index="index"/> <ai-dv-render :data="item" :theme="dashboard.theme" :index="index" :instance="instance" />
</vue-draggable-resizable> </vue-draggable-resizable>
</div> </div>
</ai-dv-wrapper> </ai-dv-wrapper>

View File

@@ -259,6 +259,8 @@
this.keys = Object.keys(res.data[0]) this.keys = Object.keys(res.data[0])
} }
} }
} else {
this.options.dynamicData = []
} }
}) })
}, },
@@ -312,6 +314,8 @@
this.list = res.data this.list = res.data
this.keys = Object.keys(res.data[0]) this.keys = Object.keys(res.data[0])
} }
} else {
this.options.dynamicData = []
} }
} }
}) })

View File

@@ -157,9 +157,13 @@ export default {
...obj ...obj
}) })
}) })
} else dynamicData = res.data } else {
dynamicData = res.data
}
} }
this.$set(this.componentList[index], item.dataType, dynamicData) this.$set(this.componentList[index], item.dataType, dynamicData)
} else {
this.$set(this.componentList[index], item.dataType, [])
} }
} }
}) })