|
@@ -73,12 +73,26 @@ export const constantRoutes = [
|
|
|
path:'swagger',
|
|
|
component:() => import('@/views/tool/swagger/index.vue'),
|
|
|
name:'swagger',
|
|
|
- meta:{ title:'接口',icon: 'dashboard' },
|
|
|
-
|
|
|
+ meta:{ title:'接口',icon: 'dashboard' },
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
+ path: '/admin',
|
|
|
+ component:Layout,
|
|
|
+ redirect: '/admin/index',
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'index',
|
|
|
+ // component: () => import('@/layout/index.vue'),
|
|
|
+ name: 'adminIndex',
|
|
|
+ meta: { title: '首页', icon: 'dashboard', affix: true },
|
|
|
+ },
|
|
|
+ // 其他 admin 下的子路由
|
|
|
+ ]
|
|
|
+ },
|
|
|
+
|
|
|
+ {
|
|
|
path: '/file',
|
|
|
component: Layout,
|
|
|
redirect: '/index',
|
|
@@ -211,6 +225,7 @@ const router = createRouter({
|
|
|
} else {
|
|
|
return { top: 0 }
|
|
|
}
|
|
|
+ console.log(savedPosition,'savedPosition');
|
|
|
},
|
|
|
});
|
|
|
|