提交 03ab9366 authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw

fix: 仪表板选项卡未选择视图时拖动报错

上级 74ec45a4
...@@ -211,7 +211,10 @@ export default { ...@@ -211,7 +211,10 @@ export default {
created() { created() {
this.refId = uuid.v1 this.refId = uuid.v1
// this.filter.filter = this.$store.getters.conditions // this.filter.filter = this.$store.getters.conditions
this.getData(this.element.propValue.viewId) if (this.element && this.element.propValue && this.element.propValue.viewId) {
this.getData(this.element.propValue.viewId)
}
// this.initAreas() // this.initAreas()
}, },
mounted() { mounted() {
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
</span> </span>
<div v-if="activeTabName === item.name" class="de-tab-content"> <div v-if="activeTabName === item.name" class="de-tab-content">
<user-view v-if="item.content" :ref="item.name" :element="item.content" :out-style="outStyle" /> <user-view v-if="item.content && item.content.propValue && item.content.propValue.viewId" :ref="item.name" :element="item.content" :out-style="outStyle" />
</div> </div>
</el-tab-pane> </el-tab-pane>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论