From 07bcae20877dd3d6553590fef34ae3ebd29934a3 Mon Sep 17 00:00:00 2001 From: yezian Date: Wed, 20 Nov 2024 16:56:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E2=80=9C=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E4=BB=A3=E8=BF=90=E8=90=A5=E4=BF=A1=E6=81=AF=E4=BC=9A=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E5=90=88=E4=BC=99=E4=BA=BA=E9=87=8D=E7=BD=AE=E2=80=9D?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/StreamerSpace/index.jsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/pages/StreamerSpace/index.jsx b/src/pages/StreamerSpace/index.jsx index bea523b..58f54f3 100644 --- a/src/pages/StreamerSpace/index.jsx +++ b/src/pages/StreamerSpace/index.jsx @@ -659,7 +659,11 @@ const StreamerSpaceContent = () => { }, body: JSON.stringify({ zid: defaultValues.key, - third_partner_mid: selectedUser, + third_partner_mid: + defaultValues?.ratio?.zone_third_partner?.third_partner_account + ?.mid === selectedUser + ? null + : selectedUser, //如果更新前后代运营的mid没有改变,则传null,为了防止更新后重置合伙人list sharing_ratio: parseInt(value.sharing_ratio, 10) / 100, ...base, }), @@ -677,6 +681,7 @@ const StreamerSpaceContent = () => { setDefaultValues({}); setIsAgencyModalOpen(false); }; + //删除代运营 const handleDeleteAgency = async () => { try {