创建调整

This commit is contained in:
670788339
2025-11-04 13:51:02 +08:00
parent 25c2e673dc
commit 48ec56dcbc

View File

@@ -178,7 +178,7 @@ export default {
event.target.value = '';
return;
}
if (!this.searchResults.length && inputVal && this.selectedTags.length < this.maxTags) {
if (!isDuplicate && inputVal && this.selectedTags.length < this.maxTags) {
this.createNewTag(event.target.value.trim())
this.clearInput();
} else if (this.selectedTags.length >= this.maxTags) {