|
@@ -1,47 +1,43 @@
|
|
|
-import { createRouter, createWebHistory } from 'vue-router'
|
|
|
|
|
-
|
|
|
|
|
|
|
+import { createRouter, createWebHistory } from "vue-router";
|
|
|
const router = createRouter({
|
|
const router = createRouter({
|
|
|
history: createWebHistory(import.meta.env.BASE_URL),
|
|
history: createWebHistory(import.meta.env.BASE_URL),
|
|
|
routes: [
|
|
routes: [
|
|
|
{
|
|
{
|
|
|
- path: '/',
|
|
|
|
|
- name: 'layout',
|
|
|
|
|
- component: () => import('@/layouts/index.vue'),
|
|
|
|
|
- redirect: '/home',
|
|
|
|
|
|
|
+ path: "/",
|
|
|
|
|
+ name: "layout",
|
|
|
|
|
+ component: () => import("@/layouts/index.vue"),
|
|
|
|
|
+ redirect: "/home",
|
|
|
children: [
|
|
children: [
|
|
|
{
|
|
{
|
|
|
- path: '/home',
|
|
|
|
|
- name: 'home',
|
|
|
|
|
- component: () => import('@/views/home/index.vue')
|
|
|
|
|
|
|
+ path: "/home",
|
|
|
|
|
+ name: "home",
|
|
|
|
|
+ component: () => import("@/views/home/index.vue"),
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- path: '/system',
|
|
|
|
|
- name: 'system',
|
|
|
|
|
- component: () => import('@/views/system/index.vue'),
|
|
|
|
|
- redirect: '/system/user',
|
|
|
|
|
|
|
+ path: "/system",
|
|
|
|
|
+ name: "system",
|
|
|
|
|
+ component: () => import("@/views/system/index.vue"),
|
|
|
|
|
+ redirect: "/system/user",
|
|
|
children: [
|
|
children: [
|
|
|
{
|
|
{
|
|
|
- path: 'user',
|
|
|
|
|
- name: 'user',
|
|
|
|
|
- component: () => import('@/views/system/user/index.vue')
|
|
|
|
|
|
|
+ path: "user",
|
|
|
|
|
+ name: "user",
|
|
|
|
|
+ component: () => import("@/views/system/user/index.vue"),
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- path: 'role',
|
|
|
|
|
- name: 'role',
|
|
|
|
|
- component: () => import('@/views/system/role/index.vue')
|
|
|
|
|
|
|
+ path: "role",
|
|
|
|
|
+ name: "role",
|
|
|
|
|
+ component: () => import("@/views/system/role/index.vue"),
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- path: 'permission',
|
|
|
|
|
- name: 'permission',
|
|
|
|
|
- component: () => import('@/views/system/permission/index.vue')
|
|
|
|
|
|
|
+ path: "permission",
|
|
|
|
|
+ name: "permission",
|
|
|
|
|
+ component: () => import("@/views/system/permission/index.vue"),
|
|
|
},
|
|
},
|
|
|
- ]
|
|
|
|
|
|
|
+ ],
|
|
|
},
|
|
},
|
|
|
- ]
|
|
|
|
|
|
|
+ ],
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- ]
|
|
|
|
|
-})
|
|
|
|
|
-
|
|
|
|
|
-export default router
|
|
|
|
|
|
|
+ ],
|
|
|
|
|
+});
|
|
|
|
|
+export default router;
|