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, () => {