enhance: navigation optimization
This commit is contained in:
parent
04c01b6780
commit
12b1d08ea4
3 changed files with 13 additions and 4 deletions
|
@ -147,7 +147,8 @@ export const useNavigationStore = defineStore("navigation", {
|
|||
this.activeNavigationObject.main.findIndex((e) => e.key == this.activeLink) == -1 ||
|
||||
this.activeLink == "default"
|
||||
) {
|
||||
let link = this.activeNavigationObject.main[0].key;
|
||||
let link = this.activeNavigationObject.main.filter((m) => !m.key.startsWith("divider"))[0].key;
|
||||
this.activeLink = link;
|
||||
router.push({ name: `admin-${this.activeNavigation}-${link}` });
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue