From a7453eea26785a3100b35b9c10000dc202671221 Mon Sep 17 00:00:00 2001
From: YM <479443481@qq.com>
Date: 星期三, 12 六月 2024 18:42:58 +0800
Subject: [PATCH] 1

---
 src/pages/character/detail.vue |    8 ++++----
 src/api/index.js               |    3 ++-
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/api/index.js b/src/api/index.js
index 9ca47bb..746dfe9 100644
--- a/src/api/index.js
+++ b/src/api/index.js
@@ -160,7 +160,8 @@
     url: "/person/fuzzySearch",
     method: "post",
     params: {
-      keyword: requestData?.keyword
+      keyword: requestData?.keyword,
+      personId: requestData?.personId,
     }
   });
 };
diff --git a/src/pages/character/detail.vue b/src/pages/character/detail.vue
index 88f065a..0e76922 100644
--- a/src/pages/character/detail.vue
+++ b/src/pages/character/detail.vue
@@ -584,7 +584,6 @@
               : fieldItem.content1;
           }
         }
-        console.log(obj);
         this.detailInfo = obj;
         getDynastyAll().then((dynastyData) => {
           getWebBasic({
@@ -601,8 +600,9 @@
           });
         });
         // 鍏崇郴鍥捐氨
-        this.getMappingData(this.detailInfo.NAME);
+        this.getMappingData();
       });
+
       //鐜颁唬鐮旂┒
       getPersonInfo({
         id: this.detailId,
@@ -811,9 +811,9 @@
         }
       });
     },
-    getMappingData(name) {
+    getMappingData() {
       getFuzzySearch({
-        keyword: name
+        personId: this.detailId
       }).then((res) => {
         this.nodes = [];
         this.relationships = [];

--
Gitblit v1.9.1