fix: 修复视图范围类组件处理变量时没有兼容null值的问题

This commit is contained in:
augushong
2025-03-22 17:11:14 +08:00
parent 40697fe389
commit 103998d8ba
2 changed files with 13 additions and 3 deletions

View File

@@ -385,7 +385,7 @@ class Cx extends Taglib
if ('$' == $flag || ':' == $flag) {
$value = $this->autoBuildVar($value);
$str = 'is_array(' . $value . ')?' . $value . ':explode(\',\',' . $value . ')';
$str = 'is_array(' . $value . ')?' . $value . ':explode(\',\',format_null_value(' . $value . '))';
} else {
$value = '"' . $value . '"';
$str = 'explode(\',\',' . $value . ')';