This commit is contained in:
andyesfly committed 2026-10-02 16:11:04 +08:00
commit 7b6fe46d10
21 files changed
+3856 -110

No files matched your search

+19 -7
View File
@@ -32,11 +32,11 @@ const routes: RouteRecordRaw[] = [
},
// 业务模块
{
path: "customer/info",
name: "CustomerInfo",
component: () => import("@/views/customer/info/index.vue"),
meta: { requiresAuth: true, title: "客户档案管理", permission: "customer:list" }
},
path: "customer/info",
name: "CustomerInfo",
component: () => import("@/views/customer/info/index.vue"),
meta: { requiresAuth: true, title: "客户档案管理", permission: "customer:list" }
},
{
path: "customer/department",
name: "CustomerDept",
@@ -154,9 +154,21 @@ const routes: RouteRecordRaw[] = [
{
path: "dispatch",
name: "Dispatch",
redirect: "/dispatch/price",
redirect: "/dispatch/repair",
meta: { requiresAuth: true, title: "运营派单", permission: "dispatch:list" }
},
{
path: "dispatch/repair",
name: "DispatchRepair",
component: () => import("@/views/dispatch/repair/index.vue"),
meta: { requiresAuth: true, title: "报修派单", permission: "dispatch:repair" }
},
{
path: "dispatch/maintenance",
name: "DispatchMaintenance",
component: () => import("@/views/dispatch/maintenance/index.vue"),
meta: { requiresAuth: true, title: "维保派单", permission: "dispatch:maintenance" }
},
{
path: "dispatch/price",
name: "DispatchPrice",
@@ -271,7 +283,7 @@ router.beforeEach(async (to, _from, next) => {
return;
}
} catch (error) {
console.error('获取用户信息失败:', error);
console.error("获取用户信息失败:", error);
next({
path: "/login",
query: { redirect: to.fullPath }