mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-12 06:57:11 +08:00
fix: 修复初始值使用错误
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
Reference in New Issue
Block a user