OAFLOW1 支持负责人本人报销兜底审批
这个提交包含在:
@@ -2,30 +2,6 @@ import { defineConfig } from "vite";
|
||||
import react from "@vitejs/plugin-react";
|
||||
import { VitePWA } from "vite-plugin-pwa";
|
||||
|
||||
const PAGE_CHUNK_PATTERNS = {
|
||||
"page-travel": ["TravelRequestsPage"],
|
||||
"page-assets": ["AssetRegistryPage", "InventoryChecksPage"],
|
||||
"page-procurement": ["PurchaseRequestsPage"],
|
||||
"page-workflow": ["WorkflowTasksPage", "WorkflowTaskDetailPage"],
|
||||
"page-system": [
|
||||
"AuditLogsPage",
|
||||
"ApprovalRulesPage",
|
||||
"DelegationsPage",
|
||||
"DepartmentsPage",
|
||||
"ErpIntegrationPage",
|
||||
"FeatureFlagsPage",
|
||||
"InvoicePoolPage",
|
||||
"LeaveRequestPage",
|
||||
"MasterDataPage",
|
||||
"NotificationChannelsPage",
|
||||
"NotificationsPage",
|
||||
"ReimbursementDetailPage",
|
||||
"ReimbursementsPage",
|
||||
"UserManagementPage",
|
||||
],
|
||||
"page-mobile": ["MobileCapturePage", "MobileAssetScanPage", "MobileApprovalsPage"],
|
||||
} as const;
|
||||
|
||||
function resolveManualChunk(id: string) {
|
||||
if (id.includes("node_modules")) {
|
||||
if (["react", "react-dom", "react-router-dom"].some((pkg) => id.includes(`/node_modules/${pkg}/`))) {
|
||||
@@ -71,14 +47,6 @@ function resolveManualChunk(id: string) {
|
||||
return "app-domain-shared";
|
||||
}
|
||||
|
||||
for (const [chunkName, pageNames] of Object.entries(PAGE_CHUNK_PATTERNS)) {
|
||||
for (const pageName of pageNames) {
|
||||
if (id.includes(`/src/router/lazy/${pageName}.ts`)) {
|
||||
return chunkName;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return undefined;
|
||||
}
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户