既に入力されているタグを二重追加しない
This commit is contained in:
		@@ -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>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user