修复“更新代运营信息会导致合伙人重置”的bug
This commit is contained in:
parent
c97a8cbca5
commit
07bcae2087
|
@ -659,7 +659,11 @@ const StreamerSpaceContent = () => {
|
||||||
},
|
},
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
zid: defaultValues.key,
|
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,
|
sharing_ratio: parseInt(value.sharing_ratio, 10) / 100,
|
||||||
...base,
|
...base,
|
||||||
}),
|
}),
|
||||||
|
@ -677,6 +681,7 @@ const StreamerSpaceContent = () => {
|
||||||
setDefaultValues({});
|
setDefaultValues({});
|
||||||
setIsAgencyModalOpen(false);
|
setIsAgencyModalOpen(false);
|
||||||
};
|
};
|
||||||
|
|
||||||
//删除代运营
|
//删除代运营
|
||||||
const handleDeleteAgency = async () => {
|
const handleDeleteAgency = async () => {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue