up. 配置更新
This commit is contained in:
parent
cd411674e6
commit
e0d483fedf
@ -131,7 +131,7 @@ class ConfigController extends BaseController
|
||||
$config && $config->save(['value'=> (string)$value]);
|
||||
}
|
||||
}
|
||||
return $this->writeSuccess('同步成功');
|
||||
return $this->writeSuccess('更新成功', $data);
|
||||
}
|
||||
|
||||
public function info()
|
||||
|
||||
@ -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':
|
||||
|
||||
Loading…
Reference in New Issue
Block a user