mirror of https://github.com/certd/certd
chore: email-selector 优化
parent
f7b0b44ef6
commit
0d455d8c2f
|
@ -61,8 +61,15 @@ async function addItem() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
debugger;
|
||||||
|
if (emails.value.find(item => item.value === email)) {
|
||||||
|
notification.warning({
|
||||||
|
message: "此邮箱已存在",
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
await api.EmailAdd(email);
|
await api.EmailAdd(email);
|
||||||
emails.value.push({
|
emails.value.unshift({
|
||||||
value: email,
|
value: email,
|
||||||
label: email,
|
label: email,
|
||||||
});
|
});
|
||||||
|
|
|
@ -9,10 +9,10 @@ export class EmailNotification extends BaseNotification {
|
||||||
@NotificationInput({
|
@NotificationInput({
|
||||||
title: '收件人邮箱',
|
title: '收件人邮箱',
|
||||||
component: {
|
component: {
|
||||||
name: 'a-select',
|
name: 'email-selector',
|
||||||
vModel: 'value',
|
vModel: 'value',
|
||||||
mode: 'tags',
|
mode: 'tags',
|
||||||
open: false,
|
// open: false,
|
||||||
},
|
},
|
||||||
required: true,
|
required: true,
|
||||||
helper: '可以填写多个,填写一个按回车键再填写下一个\n需要先[配置邮件服务器](#/sys/settings/email)',
|
helper: '可以填写多个,填写一个按回车键再填写下一个\n需要先[配置邮件服务器](#/sys/settings/email)',
|
||||||
|
|
Loading…
Reference in New Issue