guhongwei 3 年之前
父节点
当前提交
bd9e055e92
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      src/router/index.js

+ 5 - 1
src/router/index.js

@@ -8,6 +8,10 @@ VueRouter.prototype.push = function push(location) {
 };
 Vue.use(VueRouter);
 const web = [
+  {
+    path: '/',
+    redirect: '/adminCenter/homeIndex',
+  },
   // 管理登录
   {
     path: '/login',
@@ -17,7 +21,7 @@ const web = [
   },
   // 管理中心
   {
-    path: '/adminCenter/homeIndex',
+    path: '/',
     name: 'adminCenter',
     component: () => import('@frame/src/components/admin-frame/Home.vue'),
     children: [