fix(仪表板): 修复部分官方示例模板导入后无法使用官方示例数据集的问题

This commit is contained in:
Wangjiahao 2023-05-23 18:44:27 +08:00
parent ae49e8810a
commit b8cfb904b6

View File

@ -2952,7 +2952,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'