Merge pull request #2311 from dataease/pr@dev@refactor_rich-text

fix: 复用视图,在预览视图时出现显示问题
This commit is contained in:
王嘉豪 2022-05-26 11:47:38 +08:00 committed by GitHub
commit 4b74619a13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,7 +67,7 @@ export default {
showDetails(params) {
this.$store.commit('initCurMultiplexingComponents')
const _this = this
_this.selectedPanel = params
_this.selectedPanel = null
if (params.showType === 'panel') {
_this.showPosition = 'multiplexing'
_this.panelLoading = true
@ -76,6 +76,7 @@ export default {
panelDataPrepare(JSON.parse(response.data.panelData), JSON.parse(response.data.panelStyle), function(rsp) {
_this.componentData = rsp.componentData
_this.canvasStyleData = rsp.componentStyle
_this.selectedPanel = params
})
})
} else if (params.showType === 'view') {
@ -95,6 +96,7 @@ export default {
}
_this.$nextTick(() => {
_this.componentData.push(userView)
_this.selectedPanel = params
})
}
}