mirror of
https://github.com/ccmjga/zhilu-admin
synced 2026-03-31 08:33:41 +08:00
init ai page
This commit is contained in:
@@ -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",
|
||||
|
||||
16
frontend/src/router/modules/ai.ts
Normal file
16
frontend/src/router/modules/ai.ts
Normal 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;
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user