既に入力されているタグを二重追加しない
This commit is contained in:
parent
da19806a3d
commit
0ad0b268bc
@ -30,7 +30,7 @@
|
||||
buffer: string = "";
|
||||
|
||||
created() {
|
||||
bus.$on("add-tag", (tag: string) => this.tags.push(tag));
|
||||
bus.$on("add-tag", (tag: string) => this.tags.indexOf(tag) === -1 && this.tags.push(tag));
|
||||
}
|
||||
|
||||
onKeyDown(event: KeyboardEvent) {
|
||||
@ -79,4 +79,4 @@
|
||||
border: 0;
|
||||
outline: 0;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user