mirror of
https://github.com/certd/certd.git
synced 2026-04-24 04:17:25 +08:00
chore: email-selector 优化
This commit is contained in:
@@ -61,8 +61,15 @@ async function addItem() {
|
||||
return;
|
||||
}
|
||||
|
||||
debugger;
|
||||
if (emails.value.find(item => item.value === email)) {
|
||||
notification.warning({
|
||||
message: "此邮箱已存在",
|
||||
});
|
||||
return;
|
||||
}
|
||||
await api.EmailAdd(email);
|
||||
emails.value.push({
|
||||
emails.value.unshift({
|
||||
value: email,
|
||||
label: email,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user