fix: 修复初始值使用错误

This commit is contained in:
2024-05-19 13:55:39 +08:00
parent f8ded4b491
commit fd55ad4228
12 changed files with 14 additions and 68 deletions

View File

@@ -15,7 +15,6 @@
<script setup lang="ts">
import { Message } from '@arco-design/web-vue'
import type { DeptReq } from './type'
import { addDept, getDept, updateDept } from '@/apis'
import { type Columns, GiForm } from '@/components/GiForm'
import { useForm } from '@/hooks'
@@ -93,9 +92,7 @@ const columns: Columns = [
}
]
const { form, resetForm } = useForm<DeptReq>({
name: '',
parentId: undefined,
const { form, resetForm } = useForm({
sort: 999,
status: 1
})