From 5cdf8a720624389ea1d4fecd8d3046979595ba64 Mon Sep 17 00:00:00 2001
From: feige <feige@qq.com>
Date: 星期一, 05 一月 2026 15:08:55 +0800
Subject: [PATCH] 修改了代码

---
 ruoyi-ui/src/api/peopleSearch/index.js    |   10 +++++++---
 ruoyi-ui/vue.config.js                    |    4 ++--
 ruoyi-ui/src/views/peopleSearch/index.vue |    2 +-
 3 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/ruoyi-ui/src/api/peopleSearch/index.js b/ruoyi-ui/src/api/peopleSearch/index.js
index 5645492..71c18fc 100644
--- a/ruoyi-ui/src/api/peopleSearch/index.js
+++ b/ruoyi-ui/src/api/peopleSearch/index.js
@@ -11,9 +11,13 @@
 
 // 鏍规嵁id鏌ヨ鎵�鏈夊搴祫浜ц缁嗕俊鎭�
 export function searchPeople(query) {
+ 
   return request({
-    url: '/zPeopleSearch/all',
-    method: 'get',
-    params: query
+    url: '/search/universal',
+    method: 'post',
+    data: query,
+      headers: {
+        'Content-Type': 'application/json'
+      }
   })
 }
diff --git a/ruoyi-ui/src/views/peopleSearch/index.vue b/ruoyi-ui/src/views/peopleSearch/index.vue
index 7638734..c944621 100644
--- a/ruoyi-ui/src/views/peopleSearch/index.vue
+++ b/ruoyi-ui/src/views/peopleSearch/index.vue
@@ -405,7 +405,7 @@
               const response = await searchPeople(params);
               console.log(response)
               // 鏇存柊鎼滅储缁撴灉鍜屽垎椤典俊鎭�
-              this.searchResult = response.data.data || [];
+              this.searchResult = response.data.list || [];
               console.log(this.searchResult)
               this.pagination.total = response.data.total || 0;
 
diff --git a/ruoyi-ui/vue.config.js b/ruoyi-ui/vue.config.js
index e8589b0..8e7639d 100644
--- a/ruoyi-ui/vue.config.js
+++ b/ruoyi-ui/vue.config.js
@@ -37,8 +37,8 @@
       // detail: https://cli.vuewww.bendudu.comjs.org/config/#devserver-proxy
       [process.env.VUE_APP_BASE_API]: {
      // target: `https://10.39.2.234:8080/`,
-	  //target: `https://10.39.18.174:8080/`,
-    target: 'https://www.bendudu.com:8080/',
+	  target: `https://10.39.18.174:8080/`,
+    //target: 'https://www.bendudu.com:8080/',
         changeOrigin: true,
         pathRewrite: {
           ['^' + process.env.VUE_APP_BASE_API]: ''

--
Gitblit v1.9.1