Revert "* Fix chart type."

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