init ai page

This commit is contained in:
Chuck1sn
2025-05-21 09:43:57 +08:00
parent f103993960
commit d12862ea39
20 changed files with 140 additions and 32 deletions

View File

@@ -15,6 +15,7 @@ export enum RoutePath {
DEPARTMENTVIEW = "departments",
POSITIONVIEW = "positions",
CREATEUSERVIEW = "create-user",
AICHATVIEW = "ai/chat",
SCHEDULERVIEW = "scheduler",
UPSERTUSERVIEW = "upsert-user",
UPSERTROLEVIEW = "upsert-role",
@@ -39,6 +40,7 @@ export enum RouteName {
DEPARTMENTVIEW = "departments",
POSITIONVIEW = "positions",
CREATEUSERVIEW = "create-user",
AICHATVIEW = "ai/chat",
SCHEDULERVIEW = "scheduler",
UPSERTUSERVIEW = "upsert-user",
UPSERTROLEVIEW = "upsert-role",

View File

@@ -0,0 +1,16 @@
import type { RouteRecordRaw } from "vue-router";
import { EPermission, RouteName, RoutePath } from "../constants";
const aiRoutes: RouteRecordRaw[] = [
{
path: RoutePath.AICHATVIEW,
name: RouteName.AICHATVIEW,
component: () => import("@/views/AiChatView.vue"),
meta: {
requiresAuth: true,
// hasPermission: EPermission.READ_USER_ROLE_PERMISSION,
},
},
];
export default aiRoutes;

View File

@@ -3,6 +3,7 @@ import Dashboard from "../../components/Dashboard.vue";
import OverView from "../../views/OverView.vue";
import { EPermission, ERole, RouteName, RoutePath } from "../constants";
import userManagementRoutes from "./user";
import aiRoutes from "./ai";
const dashboardRoutes: RouteRecordRaw = {
path: RoutePath.DASHBOARD,
@@ -29,6 +30,7 @@ const dashboardRoutes: RouteRecordRaw = {
},
},
...userManagementRoutes,
...aiRoutes,
{
path: RoutePath.NOTFOUND,
name: RouteName.NOTFOUND,