From 21925700a5e361489d6c78e6da72f33024b05cff Mon Sep 17 00:00:00 2001 From: leiqiaochu Date: Sat, 7 Oct 2023 17:14:56 +0800 Subject: [PATCH] fix: bug#18920 --- src/views/system/Dictionary/components/Right/Save/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/system/Dictionary/components/Right/Save/index.vue b/src/views/system/Dictionary/components/Right/Save/index.vue index bce5b628..66cf6bb7 100644 --- a/src/views/system/Dictionary/components/Right/Save/index.vue +++ b/src/views/system/Dictionary/components/Right/Save/index.vue @@ -21,6 +21,7 @@ import type { Rule } from 'ant-design-vue/es/form'; import { saveDicItem, verifyValue } from '@/api/system/dictionary'; import { onlyMessage } from '@/utils/comm'; import { validateValueType } from '@/views/device/components/Metadata/Base/Edit/validator'; +import { cloneDeep } from 'lodash-es'; const props = defineProps({ type: { type: String, @@ -134,7 +135,7 @@ onMounted(() => { form.value.dictId = props.dicId form.value.ordinal = props.sort } else { - form.value = props.data + form.value = cloneDeep(props.data) lastValue.value = props.data.value } })