【缺陷修复】自己查看自己的分享时移除 shareId

pull/128/head
puhui999 2024-12-06 15:10:14 +08:00
parent cde0de43ff
commit 25fc972833
1 changed files with 5 additions and 5 deletions

View File

@ -189,12 +189,12 @@ const bindBrokerageUser = async (val = undefined) => {
if (!shareId) { if (!shareId) {
return; return;
} }
const { data } = await BrokerageApi.bindBrokerageUser({ bindUserId: shareId }); const { data, msg } = await BrokerageApi.bindBrokerageUser({ bindUserId: shareId });
if (!data) {
return;
}
// 绑定成功后清除缓存 // 绑定成功后清除缓存
if (!!data || msg.includes('不能绑定自己')) {
uni.removeStorageSync('shareId'); uni.removeStorageSync('shareId');
}
} catch (e) { } catch (e) {
console.error(e); console.error(e);
} }