|
@@ -1,6 +1,6 @@
|
|
|
import { createWebHistory, createRouter } from "vue-router";
|
|
|
/* Layout */
|
|
|
-import Layout from "@/layout";
|
|
|
+import Layout from "/src/layout";
|
|
|
|
|
|
/**
|
|
|
* Note: 路由配置项
|
|
@@ -39,22 +39,22 @@ export const constantRoutes = [
|
|
|
},
|
|
|
{
|
|
|
path: "/login",
|
|
|
- component: () => import("/src/views/login"),
|
|
|
+ component: () => import("/src/views/login.vue"),
|
|
|
hidden: true,
|
|
|
},
|
|
|
{
|
|
|
path: "/register",
|
|
|
- component: () => import("/src/views/register"),
|
|
|
+ component: () => import("/src/views/register.vue"),
|
|
|
hidden: true,
|
|
|
},
|
|
|
{
|
|
|
path: "/:pathMatch(.*)*",
|
|
|
- component: () => import("/src/views/error/404"),
|
|
|
+ component: () => import("/src/views/error/404.vue"),
|
|
|
hidden: true,
|
|
|
},
|
|
|
{
|
|
|
path: "/401",
|
|
|
- component: () => import("/src/views/error/401"),
|
|
|
+ component: () => import("/src/views/error/401.vue"),
|
|
|
hidden: true,
|
|
|
},
|
|
|
{
|
|
@@ -64,7 +64,7 @@ export const constantRoutes = [
|
|
|
children: [
|
|
|
{
|
|
|
path: "/index",
|
|
|
- component: () => import("/src/views/index"),
|
|
|
+ component: () => import("/src/views/index.vue"),
|
|
|
name: "Index",
|
|
|
meta: { title: "首页", icon: "dashboard", affix: true },
|
|
|
},
|
|
@@ -84,7 +84,7 @@ export const constantRoutes = [
|
|
|
children: [
|
|
|
{
|
|
|
path: "profile",
|
|
|
- component: () => import("/src/views/system/user/profile/index"),
|
|
|
+ component: () => import("/src/views/system/user/profile/index.vue"),
|
|
|
name: "Profile",
|
|
|
meta: { title: "个人中心", icon: "user" },
|
|
|
},
|
|
@@ -227,7 +227,7 @@ export const dynamicRoutes = [
|
|
|
children: [
|
|
|
{
|
|
|
path: "role/:userId(\\d+)",
|
|
|
- component: () => import("/src/views/system/user/authRole"),
|
|
|
+ component: () => import("/src/views/system/user/authRole.vue"),
|
|
|
name: "AuthRole",
|
|
|
meta: { title: "分配角色", activeMenu: "/system/user" },
|
|
|
},
|
|
@@ -241,7 +241,7 @@ export const dynamicRoutes = [
|
|
|
children: [
|
|
|
{
|
|
|
path: "user/:roleId(\\d+)",
|
|
|
- component: () => import("/src/views/system/role/authUser"),
|
|
|
+ component: () => import("/src/views/system/role/authUser.vue"),
|
|
|
name: "AuthUser",
|
|
|
meta: { title: "分配用户", activeMenu: "/system/role" },
|
|
|
},
|
|
@@ -255,7 +255,7 @@ export const dynamicRoutes = [
|
|
|
children: [
|
|
|
{
|
|
|
path: "index/:dictId(\\d+)",
|
|
|
- component: () => import("/src/views/system/dict/data"),
|
|
|
+ component: () => import("/src/views/system/dict/data.vue"),
|
|
|
name: "Data",
|
|
|
meta: { title: "字典数据", activeMenu: "/system/dict" },
|
|
|
},
|
|
@@ -269,7 +269,7 @@ export const dynamicRoutes = [
|
|
|
children: [
|
|
|
{
|
|
|
path: "index/:jobId(\\d+)",
|
|
|
- component: () => import("/src/views/monitor/job/log"),
|
|
|
+ component: () => import("/src/views/monitor/job/log.vue"),
|
|
|
name: "JobLog",
|
|
|
meta: { title: "调度日志", activeMenu: "/monitor/job" },
|
|
|
},
|
|
@@ -283,7 +283,7 @@ export const dynamicRoutes = [
|
|
|
children: [
|
|
|
{
|
|
|
path: "index/:tableId(\\d+)",
|
|
|
- component: () => import("/src/views/tool/gen/editTable"),
|
|
|
+ component: () => import("/src/views/tool/gen/editTable.vue"),
|
|
|
name: "GenEdit",
|
|
|
meta: { title: "修改生成配置", activeMenu: "/tool/gen" },
|
|
|
},
|