From a2e09510426680eb425c0d7ad337f39d3f052054 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Wed, 2 Jul 2025 16:47:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E5=92=8C=E8=A7=A6=E5=8F=91=E5=99=A8=E6=97=A0=E6=B3=95=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pipeline/component/notification-form/index.vue | 13 ++++++++++++- .../pipeline/component/trigger-form/index.vue | 1 + 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/packages/ui/certd-client/src/views/certd/pipeline/pipeline/component/notification-form/index.vue b/packages/ui/certd-client/src/views/certd/pipeline/pipeline/component/notification-form/index.vue index c58c53d9..954e620a 100644 --- a/packages/ui/certd-client/src/views/certd/pipeline/pipeline/component/notification-form/index.vue +++ b/packages/ui/certd-client/src/views/certd/pipeline/pipeline/component/notification-form/index.vue @@ -91,6 +91,7 @@ import { nanoid } from "nanoid"; import PiNotificationFormEmail from "./pi-notification-form-email.vue"; import NotificationSelector from "/@/views/certd/notification/notification-selector/index.vue"; import { useI18n } from "vue-i18n"; +import { cloneDeep } from "lodash-es"; const { t } = useI18n(); @@ -151,7 +152,7 @@ const notificationDrawerOnAfterVisibleChange = (val: any) => { const notificationOpen = (notification: any, emit: any) => { callback.value = emit; - currentNotification.value = _.cloneDeep(notification); + currentNotification.value = cloneDeep(notification); console.log("currentNotificationOpen", currentNotification.value); notificationDrawerShow(); }; @@ -210,6 +211,16 @@ function onSelectedChange(node: any) { const labelCol = { span: 6 }; const wrapperCol = { span: 16 }; + +defineExpose({ + notificationAdd, + notificationEdit, + notificationView, + notificationDelete, + notificationSave, + notificationOpen, + notificationDrawerShow, +});