mirror of
https://github.com/himool/HimoolERP.git
synced 2026-01-15 05:44:23 +08:00
22 lines
456 B
JavaScript
22 lines
456 B
JavaScript
import VueRouter from "vue-router";
|
|
import user from "./user";
|
|
|
|
const index = {
|
|
path: "/",
|
|
component: () => import("@/layouts/BaseLayout"),
|
|
redirect: "/team",
|
|
children: [
|
|
{
|
|
path: "/team",
|
|
component: () => import("@/views/team/index"),
|
|
},
|
|
{
|
|
path: "/device",
|
|
component: () => import("@/views/device/index"),
|
|
},
|
|
],
|
|
};
|
|
|
|
const routes = [index, user];
|
|
|
|
export default new VueRouter({ mode: "history", routes });
|