UI Improvements

This commit is contained in:
Peng-YM
2020-09-03 10:23:50 +08:00
parent 85b02d8eb0
commit b751f2e719
11 changed files with 193 additions and 74 deletions

View File

@@ -38,6 +38,7 @@
v-for="(keyword, idx) in keywords"
:key="idx"
@click:close="remove(idx)"
@click="edit(idx)"
>
{{ keyword }}
</v-chip>
@@ -76,6 +77,10 @@ export default {
this.$store.commit("SET_ERROR_MESSAGE", "关键词不能为空!");
}
},
edit(idx) {
this.form.keyword = this.keywords[idx];
this.remove(idx);
},
remove(idx) {
this.keywords.splice(idx, 1);
},