mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-09-24 13:03:30 +08:00
去掉 temporaryStore
This commit is contained in:
@@ -78,13 +78,16 @@ export default {
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
window.temporaryStore.updateSelectList = (opt, id) => {
|
||||
quickcommand.updateSelectList = (opt, id) => {
|
||||
if (typeof id === "undefined") this.items.push(opt);
|
||||
else this.items[id] = opt;
|
||||
};
|
||||
this.options.enableSearch && this.setSubInput();
|
||||
this.setUtoolsHeight(this.itemHeight * this.matchedItemsSize);
|
||||
},
|
||||
unmounted() {
|
||||
this.clear();
|
||||
},
|
||||
computed: {
|
||||
matchedItems() {
|
||||
let matchedItems = this.searchWords
|
||||
@@ -188,7 +191,7 @@ export default {
|
||||
clear() {
|
||||
utools.removeSubInput();
|
||||
this.setUtoolsHeight(this.listMaxHeight);
|
||||
window.temporaryStoreSoldOut();
|
||||
quickcommand.updateSelectList = () => {};
|
||||
},
|
||||
},
|
||||
};
|
||||
|
Reference in New Issue
Block a user