mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-10 20:57:10 +08:00
refactor: useForm => useResetReactive(同步 GiDemo 更新)
This commit is contained in:
@@ -19,7 +19,7 @@ import { useWindowSize } from '@vueuse/core'
|
||||
import { mapTree } from 'xe-utils'
|
||||
import { type DeptResp, addDept, getDept, updateDept } from '@/apis/system/dept'
|
||||
import { type Columns, GiForm, type Options } from '@/components/GiForm'
|
||||
import { useForm } from '@/hooks'
|
||||
import { useResetReactive } from '@/hooks'
|
||||
|
||||
interface Props {
|
||||
depts: DeptResp[]
|
||||
@@ -55,7 +55,7 @@ const options: Options = {
|
||||
btns: { hide: true },
|
||||
}
|
||||
|
||||
const { form, resetForm } = useForm({
|
||||
const [form, resetForm] = useResetReactive({
|
||||
sort: 999,
|
||||
status: 1,
|
||||
})
|
||||
|
Reference in New Issue
Block a user