* Fix chart type.

This commit is contained in:
qixinzhi
2023-12-12 15:06:09 +08:00
parent 0cf03da474
commit e0e15473e3
+1 -1
View File
@@ -205,7 +205,7 @@ class screenModel extends model
$chartID = zget($component->chartConfig, 'sourceID', '');
if(!$chartID) return $component;
$type = zget($component->chartConfig, 'key', '');
$type = $component->chartConfig->package;
$type = $this->getChartType($type);
$table = $this->config->objectTables[$type];
$chart = $this->dao->select('*')->from($table)->where('id')->eq($chartID)->fetch();