mirror of
https://github.com/chansee97/nova-admin.git
synced 2025-04-06 03:57:54 +08:00
fix: check appRoot
This commit is contained in:
parent
86ef62f841
commit
530231a5cb
@ -28,7 +28,8 @@ export const useRouteStore = defineStore('route-store', {
|
|||||||
this.$reset()
|
this.$reset()
|
||||||
},
|
},
|
||||||
resetRoutes() {
|
resetRoutes() {
|
||||||
router.removeRoute('appRoot')
|
if (router.hasRoute('appRoot'))
|
||||||
|
router.removeRoute('appRoot')
|
||||||
},
|
},
|
||||||
// set the currently highlighted menu key
|
// set the currently highlighted menu key
|
||||||
setActiveMenu(key: string) {
|
setActiveMenu(key: string) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user