fix: 修复 lodash 升级为 lodash-es 后遗漏的错误代码 (#2)

This commit is contained in:
Gap Zhang
2024-04-17 17:55:15 +08:00
committed by GitHub
parent 66c4526aac
commit c0007c33dc
4 changed files with 6 additions and 6 deletions

View File

@@ -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())