mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-10 00:52:40 +00:00
UI Improvements
This commit is contained in:
@@ -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);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user