mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-11-11 02:57:09 +08:00
fix: 修复 lodash 升级为 lodash-es 后遗漏的错误代码 (#2)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { reactive, computed, ref, type Ref } from 'vue'
|
||||
import { useRoute, useRouter } from 'vue-router'
|
||||
import { Modal, Message, type FormInstance } from '@arco-design/web-vue'
|
||||
import { isEqual } from 'lodash'
|
||||
import { isEqual } from 'lodash-es'
|
||||
|
||||
type Option<T> = {
|
||||
key?: string
|
||||
|
||||
@@ -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