Merge pull request #5289 from dataease/pr@dev@fix_panel-ds-change

fix(仪表板): 修复部分官方示例模板导入后无法使用官方示例数据集的问题
This commit is contained in:
王嘉豪 2023-05-23 18:45:53 +08:00 committed by GitHub
commit ee1dbb7b44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2953,7 +2953,7 @@ export default {
//
changeChart() {
const optType = this.view.tableId === this.changeTable.id ? 'same' : 'change'
const optType = this.view.tableId === this.changeTable.id && this.view.dataFrom!=='template' ? 'same' : 'change'
//
if (optType === 'change') {
this.view.dataFrom = 'dataset'