|
@@ -60,6 +60,8 @@ export const useAppRouter = defineStore(ConstantStore.ROUTER, () => {
|
|
|
watch(
|
|
watch(
|
|
|
() => RootRouter.currentRoute.value.path,
|
|
() => RootRouter.currentRoute.value.path,
|
|
|
() => {
|
|
() => {
|
|
|
|
|
+ console.log('RootRouter.currentRoute.value.path:', RootRouter.currentRoute.value)
|
|
|
|
|
+
|
|
|
appRouter.sider = {
|
|
appRouter.sider = {
|
|
|
route: RootRouter.getRoutes().find(item => item.path === appRouter.navbar!.selectPath)?.children as ROUTER.RoutesProps[],
|
|
route: RootRouter.getRoutes().find(item => item.path === appRouter.navbar!.selectPath)?.children as ROUTER.RoutesProps[],
|
|
|
selectPath: RootRouter.currentRoute.value.path,
|
|
selectPath: RootRouter.currentRoute.value.path,
|