* [bug] fix error.

This commit is contained in:
qixinzhi
2024-12-18 17:30:21 +08:00
committed by 周鑫
parent dd9428678b
commit 772a7ed04d
+2 -1
View File
@@ -430,7 +430,8 @@ class screenModel extends model
if(!isset($component->option)) $component->option = new stdclass();
if(!isset($component->option->title)) $component->option->title = new stdclass();
$component->option->title->notFoundText = sprintf($this->lang->screen->$noDataLang, $chart->name);
$name = zget($chart, 'name', '');
$component->option->title->notFoundText = sprintf($this->lang->screen->$noDataLang, $name);
$component->option->isDeleted = true;
return $component;