From d1e0af4807e0bbfd74428c7d1605e2699d2dd0d4 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 28 八月 2026 23:37:12 +0800
Subject: [PATCH] 建城恒商贸 1.备件管理页面分页传参错误修改

---
 src/views/equipmentManagement/spareParts/index.vue |   14 ++++----------
 vite.config.js                                     |    2 +-
 2 files changed, 5 insertions(+), 11 deletions(-)

diff --git a/src/views/equipmentManagement/spareParts/index.vue b/src/views/equipmentManagement/spareParts/index.vue
index 8c22697..2fa6f7d 100644
--- a/src/views/equipmentManagement/spareParts/index.vue
+++ b/src/views/equipmentManagement/spareParts/index.vue
@@ -391,16 +391,10 @@
   fetchListData();
 }
 
-// 鍒嗛〉澶у皬鏀瑰彉
-const handleSizeChange = (size) => {
-  pagination.size = size;
-  pagination.current = 1;
-  fetchListData();
-}
-
-// 褰撳墠椤垫敼鍙�
-const handleCurrentChange = (current) => {
-  pagination.current = current;
+// 鍒嗛〉鍙樺寲
+const handleSizeChange = ({ page, limit }) => {
+  pagination.current = page;
+  pagination.size = limit;
   fetchListData();
 }
 
diff --git a/vite.config.js b/vite.config.js
index 6b267a7..026c837 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -8,7 +8,7 @@
   const { VITE_APP_ENV } = env;
   const baseUrl =
       env.VITE_APP_ENV === "development"
-          ? "http://localhost:7005"
+          ? "http://1.15.17.182:9108"
           : env.VITE_BASE_API;
   const javaUrl =
       env.VITE_APP_ENV === "development"

--
Gitblit v1.9.3