From ce51d7719b4d908da5577751f0c840fab5d1a39e Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期五, 19 四月 2024 17:45:54 +0800 Subject: [PATCH] 20240419 --- src/views/fytz/user/components/CompUserInfo.vue | 19 ++++++++++++------- 1 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/views/fytz/user/components/CompUserInfo.vue b/src/views/fytz/user/components/CompUserInfo.vue index d782e78..423d624 100644 --- a/src/views/fytz/user/components/CompUserInfo.vue +++ b/src/views/fytz/user/components/CompUserInfo.vue @@ -92,10 +92,10 @@ const props = defineProps({ //鍩烘湰淇℃伅 model: { - type: Object, - default: () => { - return { isenable: true }; - } + type: Object + // default: () => { + // return { isenable: true }; + // } }, create: { type: Boolean, @@ -107,9 +107,14 @@ } }); -const formInfo = computed(() => { - return parseUserInfo(props.model); -}); +const formInfo = ref({ isenable: true }); + +watch( + () => props.model, + (nValue) => { + formInfo.value = parseUserInfo(nValue); + } +); const emit = defineEmits(['onSubmit', 'onCancel', 'updateEdit']); -- Gitblit v1.9.3