fix(仪表板): 修复预览复用预览视图未显示问题

This commit is contained in:
wangjiahao 2023-07-06 16:31:47 +08:00
parent 8130b56f9a
commit 6d86eaba54

View File

@ -159,7 +159,8 @@ export default {
computed: {
chart() {
if (this.config.propValue?.viewId) {
return JSON.parse(this.panelViewDetailsInfo[this.config.propValue.viewId])
const viewInfo = this.panelViewDetailsInfo[this.config.propValue.viewId];
return viewInfo?JSON.parse(viewInfo):null
}
return null
},