mirror of
https://github.com/certd/certd.git
synced 2026-04-15 05:00:52 +08:00
fix: 修复创建流水线通知设置无效的bug
This commit is contained in:
@@ -107,10 +107,10 @@ export default function (certPlugins: any[], formWrapperRef: any): CreateCrudOpt
|
||||
title: "失败通知",
|
||||
type: "text",
|
||||
form: {
|
||||
value: 0,
|
||||
value: true,
|
||||
component: {
|
||||
name: NotificationSelector,
|
||||
vModel: "modelValue"
|
||||
name: "a-switch",
|
||||
vModel: "checked"
|
||||
},
|
||||
order: 101,
|
||||
helper: "任务执行失败实时提醒"
|
||||
|
||||
@@ -40,6 +40,7 @@ export default {
|
||||
await doSubmitRef.value({ form });
|
||||
|
||||
if (form.email) {
|
||||
//创建一个默认的邮件通知
|
||||
const notificationApi = createNotificationApi();
|
||||
await notificationApi.GetOrCreateDefault({ email: form.email });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user