From ae847e9f87a1d64276cbbb82c5cdfd00c0385f51 Mon Sep 17 00:00:00 2001 From: dhb52 Date: Sat, 4 May 2024 23:33:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=94=99=E8=AF=AF=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E7=9A=84defineModel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../scene/modules/notify-config-operate-drawer.vue | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/views/notify/scene/modules/notify-config-operate-drawer.vue b/src/views/notify/scene/modules/notify-config-operate-drawer.vue index a75bb89..53fba8f 100644 --- a/src/views/notify/scene/modules/notify-config-operate-drawer.vue +++ b/src/views/notify/scene/modules/notify-config-operate-drawer.vue @@ -46,9 +46,7 @@ const visible = defineModel('visible', { default: false }); -const options = defineModel[]>('options', { - default: translateOptions(retryNotifySceneOptions) -}); +const notifySceneOptions = ref[]>(translateOptions(retryNotifySceneOptions)); const { formRef, validate, restoreValidation } = useNaiveForm(); const { defaultRequiredRule } = useFormRules(); @@ -209,11 +207,11 @@ async function systemTaskTypeChange(value: number) { if (value === 1) { const res = await fetchGetRetrySceneList({ groupName: model.groupName }); retryScenes.value = res.data as Api.RetryScene.Scene[]; - options.value = translateOptions(retryNotifySceneOptions); + notifySceneOptions.value = translateOptions(retryNotifySceneOptions); } else if (value === 3) { const res = await fetchGetJobList({ groupName: model.groupName }); jobs.value = res.data as Api.Job.Job[]; - options.value = translateOptions(jobNotifySceneOptions); + notifySceneOptions.value = translateOptions(jobNotifySceneOptions); } model.businessId = ''; @@ -288,7 +286,7 @@ watch(visible, () => {