Merge pull request #5598 from dataease/pr@dev@fix_panel-copy

fix(仪表板): 修复预览复用预览视图未显示问题
This commit is contained in:
王嘉豪 2023-07-06 16:48:25 +08:00 committed by GitHub
commit 304c8c70fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
},