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

fix: 过滤组件在没有视图时报错

上级 1bf8fe5d
......@@ -316,7 +316,7 @@ export default {
const viewIds = this.componentData
.filter(item => item.type === 'view' && item.propValue && item.propValue.viewId)
.map(item => item.propValue.viewId)
viewsWithIds(viewIds).then(res => {
viewIds && viewIds.length > 0 && viewsWithIds(viewIds).then(res => {
const datas = res.data
this.viewInfos = datas
})
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论