auto expand menu when menu open by search/recent

This commit is contained in:
Dede Fuji Abdul
2023-10-27 09:47:02 +07:00
parent 3b4e2ae1b9
commit 4fc30443e3
3 changed files with 24 additions and 30 deletions

View File

@@ -88,6 +88,9 @@ export const useCommandPalattesStore = defineStore('command_palettes', () => {
addRecent(routeTarget)
route.push(routeTarget.path)
closeCommand()
setTimeout(() => {
menu.expandCurrentActiveMenu()
}, 200);
}
const closeCommand = () => {