mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-24 10:33:50 +08:00
perf(useForm): If the args of the setFieldsValue is empty, it will not be executed. close #3209
This commit is contained in:
parent
06a6c947a9
commit
8f900871ac
@ -111,6 +111,10 @@ export function useFormEvents({
|
||||
* @description: Set form value
|
||||
*/
|
||||
async function setFieldsValue(values: Recordable): Promise<void> {
|
||||
if (Object.keys(values).length === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
const fields = getAllFields();
|
||||
|
||||
// key 支持 a.b.c 的嵌套写法
|
||||
|
Loading…
Reference in New Issue
Block a user