提交 72ad660a authored 作者: wangjiahao's avatar wangjiahao

fix: 复用视图,在预览视图时出现显示问题

上级 c1c8f7a1
...@@ -67,7 +67,7 @@ export default { ...@@ -67,7 +67,7 @@ export default {
showDetails(params) { showDetails(params) {
this.$store.commit('initCurMultiplexingComponents') this.$store.commit('initCurMultiplexingComponents')
const _this = this const _this = this
_this.selectedPanel = params _this.selectedPanel = null
if (params.showType === 'panel') { if (params.showType === 'panel') {
_this.showPosition = 'multiplexing' _this.showPosition = 'multiplexing'
_this.panelLoading = true _this.panelLoading = true
...@@ -76,6 +76,7 @@ export default { ...@@ -76,6 +76,7 @@ export default {
panelDataPrepare(JSON.parse(response.data.panelData), JSON.parse(response.data.panelStyle), function(rsp) { panelDataPrepare(JSON.parse(response.data.panelData), JSON.parse(response.data.panelStyle), function(rsp) {
_this.componentData = rsp.componentData _this.componentData = rsp.componentData
_this.canvasStyleData = rsp.componentStyle _this.canvasStyleData = rsp.componentStyle
_this.selectedPanel = params
}) })
}) })
} else if (params.showType === 'view') { } else if (params.showType === 'view') {
...@@ -95,6 +96,7 @@ export default { ...@@ -95,6 +96,7 @@ export default {
} }
_this.$nextTick(() => { _this.$nextTick(() => {
_this.componentData.push(userView) _this.componentData.push(userView)
_this.selectedPanel = params
}) })
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论