lixuliang
2024-09-10 1d5aa0260234e327cae874e10a21e09f730f095b
se-ui/src/router/index.js
@@ -64,15 +64,16 @@
  {
    path: '',
    component: Layout,
    redirect: 'index',
    children: [
      {
        path: 'index',
        component: () => import('@/views/index'),
        name: 'Index',
        meta: { title: '首页', icon: 'dashboard', affix: true }
      }
    ]
    redirect: '/login',
    // redirect: 'system/user',
    // children: [
    //   {
    //     path: 'index',
    //     component: () => import('@/views/index'),
    //     name: 'Index',
    //     meta: { title: '首页', icon: 'dashboard', affix: true }
    //   }
    // ]
  },
  {
    path: '/user',
@@ -178,6 +179,7 @@
export default new Router({
  mode: 'history', // 去掉url中的#
  base: process.env.VUE_APP_ITEM_PATH,
  scrollBehavior: () => ({ y: 0 }),
  routes: constantRoutes
})