mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-07 21:46:12 +08:00
修复进入收藏标签后自动跳转到第一个标签的BUG
This commit is contained in:
parent
6e19a5c8ee
commit
01f5becfb6
@ -87,9 +87,11 @@ export default {
|
|||||||
const savedTagOrder = dbManager.getDB(TAG_ORDER_KEY);
|
const savedTagOrder = dbManager.getDB(TAG_ORDER_KEY);
|
||||||
if (savedTagOrder.length) {
|
if (savedTagOrder.length) {
|
||||||
this.savedTagOrder = savedTagOrder;
|
this.savedTagOrder = savedTagOrder;
|
||||||
this.commandManager.changeCurrentTag(this.savedTagOrder[0]);
|
}
|
||||||
} else {
|
if (!this.commandManager.state.currentTag) {
|
||||||
this.commandManager.changeCurrentTag(this.allQuickCommandTags[0]);
|
this.commandManager.changeCurrentTag(
|
||||||
|
this.savedTagOrder[0] || this.allQuickCommandTags[0]
|
||||||
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user