Initial commit

This commit is contained in:
fengachen
2021-08-23 09:57:23 +08:00
commit 71f2a1241f
167 changed files with 75173 additions and 0 deletions
+55
View File
@@ -0,0 +1,55 @@
import { UserLayout, TabLayout } from "@/components/layouts";
/**
* 走菜单,走权限控制
* @type {[null,null]}
*/
export const asyncRouterMap = [
{
path: "/",
name: "dashboard",
component: TabLayout,
meta: { title: "首页" },
redirect: "/dashboard/analysis",
children: []
},
{
path: "*", redirect: "/404", hidden: true
}
];
/**
* 基础路由
* @type { *[] }
*/
export const constantRouterMap = [
{
path: "/user",
component: UserLayout,
redirect: "/user/login",
hidden: true,
children: [
{
path: "login",
name: "login",
component: () => import(/* webpackChunkName: "user" */ "@/views/user/Login")
},
{
path: "register",
name: "register",
component: () => import(/* webpackChunkName: "user" */ "@/views/user/register/Register")
},
{
path: "register-result",
name: "registerResult",
component: () => import(/* webpackChunkName: "user" */ "@/views/user/register/RegisterResult")
},
{
path: "alteration",
name: "alteration",
component: () => import(/* webpackChunkName: "user" */ "@/views/user/alteration/Alteration")
}
]
}
];