up. 配置更新

This commit is contained in:
u2nyakim 2025-08-26 13:52:57 +08:00
parent cd411674e6
commit e0d483fedf
2 changed files with 4 additions and 2 deletions

View File

@ -131,7 +131,7 @@ class ConfigController extends BaseController
$config && $config->save(['value'=> (string)$value]);
}
}
return $this->writeSuccess('同步成功');
return $this->writeSuccess('更新成功', $data);
}
public function info()

View File

@ -20,10 +20,11 @@ export function strToValue(type: string, value: string): any {
return value.split(",");
case 'text':
case 'textarea':
return value ? value.toString() : '';
case 'date':
case 'datetime':
case 'time':
return null;
return value ? value.toString() : null;
case 'date_range':
case 'time_range':
case 'datetime_range':
@ -70,6 +71,7 @@ export function strToBind(type: string, bindStr: string): any {
case 'text':
case 'textarea':
case 'checkbox':
return bind;
case 'date':
return {format: 'YYYY-MM-DD', ...bind}
case 'datetime':