mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-11-04 22:57:10 +08:00
fix: 修复 lodash 升级为 lodash-es 后遗漏的错误代码 (#2)
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { reactive } from 'vue'
|
||||
import _ from 'lodash'
|
||||
import { cloneDeep } from 'lodash-es'
|
||||
|
||||
export function useForm<F extends object>(initValue: F) {
|
||||
const getInitValue = () => _.cloneDeep(initValue)
|
||||
const getInitValue = () => cloneDeep(initValue)
|
||||
|
||||
const form = reactive(getInitValue())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user