forked from github/dataease
Merge pull request #2311 from dataease/pr@dev@refactor_rich-text
fix: 复用视图,在预览视图时出现显示问题
This commit is contained in:
commit
4b74619a13
@ -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
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user