This commit is contained in:
u2nyakim 2025-08-25 17:30:02 +08:00
parent 59b6f1ceaa
commit 39af3f089a
2 changed files with 10 additions and 7 deletions

View File

@ -35,13 +35,15 @@ class ConfigController extends BaseController
'value' => '',
'tips' => '',
'type' => '',
'options' => '',
'option' => '',
'name' => '',
'comments' => '',
'group'=> '',
'bind'=>''
'group'=> ''
]);
$data['v_bind'] = $this->request->post('vBind');
$data['item_bind'] = $this->request->post('itemBind');
$data['item_style'] = $this->request->post('itemStyle');
$data['item_class'] = $this->request->post('itemClass');
$user = new SysConfig();
$user->save($data);
@ -57,12 +59,14 @@ class ConfigController extends BaseController
'value' => '',
'type' => '',
'tips' => '',
'options' => '',
'option' => '',
'name' => '',
'comments' => '',
'group'=> '',
]);
$data['v_bind'] = $this->request->put('vBind');
$data['item_bind'] = $this->request->post('itemBind');
$data['item_style'] = $this->request->post('itemStyle');
$data['item_class'] = $this->request->post('itemClass');
$user = SysConfig::findOrFail($data['id']);
$user->save($data);

View File

@ -48,7 +48,6 @@ export const ItemLabels: Record<ItemType, string> = {
[ItemType.NUMBER]: "数字",
};
export function getItemLabel(type: ItemType): string {
return ItemLabels[type] || type.toString();
}