From f0380c48b2e9e05bded4bf5221cd07211c1ef495 Mon Sep 17 00:00:00 2001 From: 杨磊 <505174330@qq.com> Date: 星期三, 12 六月 2024 19:17:15 +0800 Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/TCM_CharacterLibrary --- 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 b926e74..2354fc2 100644 --- a/src/pages/character/detail.vue +++ b/src/pages/character/detail.vue @@ -585,7 +585,6 @@ : fieldItem.content1; } } - console.log(obj); this.detailInfo = obj; getDynastyAll().then((dynastyData) => { getWebBasic({ @@ -602,8 +601,9 @@ }); }); // 鍏崇郴鍥捐氨 - this.getMappingData(this.detailInfo.NAME); + this.getMappingData(); }); + //鐜颁唬鐮旂┒ getPersonInfo({ id: this.detailId, @@ -812,9 +812,9 @@ } }); }, - getMappingData(name) { + getMappingData() { getFuzzySearch({ - keyword: name, + personId: this.detailId }).then((res) => { this.nodes = []; this.relationships = []; -- Gitblit v1.9.1