refactor: 优化部分代码

This commit is contained in:
2024-11-18 20:37:38 +08:00
parent f702e03124
commit 901213d133
16 changed files with 110 additions and 97 deletions

View File

@@ -42,6 +42,11 @@ const options: Options = {
btns: { hide: true },
}
const { form, resetForm } = useForm({
gender: 1 as Gender,
status: 1 as Status,
})
const columns: Columns = reactive([
{
label: '用户名',
@@ -160,11 +165,6 @@ const columns: Columns = reactive([
},
])
const { form, resetForm } = useForm({
gender: 1 as Gender,
status: 1 as Status,
})
// 重置
const reset = () => {
formRef.value?.formRef?.resetFields()