This commit is contained in:
fengchuanhn@gmail.com
2026-05-21 00:19:08 +08:00
parent 3215d39a32
commit 3b0a8d777c
63 changed files with 12483 additions and 1114 deletions

View File

@@ -1,6 +1,6 @@
import { createRouter, createWebHistory } from "vue-router";
import { useAuthStore, ROLE_ADMIN, ROLE_AGENT } from "../stores/auth";
import { useAuthStore, ROLE_ADMIN, ROLE_AGENT,ROLE_OEM } from "../stores/auth";
@@ -191,7 +191,69 @@ const mainChildren = [
],
},
{
path: "oem",
component: () => import("../views/OemView.vue"),
meta: { title: "管理", requiresRole: ROLE_OEM},
redirect: { name: "oem-overview" },
children: [
{
path: "",
name: "oem-overview",
component: () => import("../views/oem/OemOverviewView.vue"),
meta: { title: "概览" },
},
{
path: "users",
name: "oem-users",
component: () => import("../views/oem/OemUsersView.vue"),
meta: { title: "用户管理" },
},
{
path: "desktop-config",
name: "admin-desktop-config",
component: () => import("../views/oem/OemDesktopConfigView.vue"),
meta: { title: "桌面配置" },
},
{
path: "card-keys",
name: "admin-card-keys",
component: () => import("../views/oem/OemCardKeysView.vue"),
meta: { title: "卡密管理" },
},
],
},
{
path: "agent",