From 9ea5ff67655241271bdf04bb50ca3a8d60c4e22a Mon Sep 17 00:00:00 2001
From: yuan <123@>
Date: 星期二, 11 八月 2026 15:07:02 +0800
Subject: [PATCH] fix: 用河南鹤壁代码覆盖山西长治
---
src/api/viewIndex.js | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/api/viewIndex.js b/src/api/viewIndex.js
index 0087d66..9cae219 100644
--- a/src/api/viewIndex.js
+++ b/src/api/viewIndex.js
@@ -349,7 +349,8 @@
export const productionOrderProgress = (params = {}) => {
const safePageNum = Math.max(1, Number(params.pageNum || 1));
- const safeTab = ["all", "inProgress", "completed", "end"].includes(params.tab)
+ const safePageSize = Math.min(50, Math.max(1, Number(params.pageSize || 10)));
+ const safeTab = ["all", "inProgress", "completed", "paused"].includes(params.tab)
? params.tab
: "all";
return request({
@@ -359,7 +360,7 @@
...params,
tab: safeTab,
pageNum: safePageNum,
- pageSize: params.pageSize,
+ pageSize: safePageSize,
},
headers: {
handleAuthError: false,
--
Gitblit v1.9.3