From bdbe2de99a30ec0c426ef1574de39842e4c9bdf9 Mon Sep 17 00:00:00 2001
From: yezian
Date: Mon, 1 Jul 2024 12:24:10 +0800
Subject: [PATCH] =?UTF-8?q?=E5=85=A5=E9=A9=BB=E5=92=8C=E5=AE=9E=E5=90=8D?=
=?UTF-8?q?=E8=AE=A4=E8=AF=81=E9=A1=B5=E9=9D=A2=E7=9A=84=E6=90=9C=E7=B4=A2?=
=?UTF-8?q?=E6=94=B9=E4=B8=BAid=E6=90=9C=E7=B4=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/StreamerJoin/index.jsx | 14 +++-----------
src/pages/StreamerVerification/index.jsx | 10 +++-------
2 files changed, 6 insertions(+), 18 deletions(-)
diff --git a/src/pages/StreamerJoin/index.jsx b/src/pages/StreamerJoin/index.jsx
index 3473efd..6b49360 100644
--- a/src/pages/StreamerJoin/index.jsx
+++ b/src/pages/StreamerJoin/index.jsx
@@ -349,12 +349,8 @@ const JoinContent = (props) => {
}, [data]);
//搜索名人
const search = (value) => {
- value.name
- ? setShowData(
- data.filter((item) =>
- item.info.name.toLowerCase().includes(value.name)
- )
- )
+ value.id
+ ? setShowData(data.filter((item) => item.info.id == value.id))
: setShowData(data);
};
//表单提交失败
@@ -371,11 +367,7 @@ const JoinContent = (props) => {