Commit c62b703d authored by GuanHua's avatar GuanHua

fix: 自营商城装修获取资讯接口添加trycatch

parent dcb1f0bd
......@@ -172,16 +172,20 @@ const OwnMallTempleteEdit: React.FC<ShopPreviewPropsType> = props => {
};
const getInfoList = async () => {
const param: any = {
current: 1,
pageSize: 1,
};
const res = await getManageMemberInformationListAdorn(param);
message.destroy()
if (res.code === 1000 && res.data.data && res.data.data.length > 0) {
return res.data.data[0].title;
try {
const param: any = {
current: 1,
pageSize: 1,
};
const res = await getManageMemberInformationListAdorn(param);
message.destroy()
if (res.code === 1000 && res.data.data && res.data.data.length > 0) {
return res.data.data[0].title;
}
return '';
} catch (error) {
return '';
}
return '';
};
const getComponentsConfig = async () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment