Commit 319d313b authored by 前端-钟卫鹏's avatar 前端-钟卫鹏
parents 90503f03 120a822f
......@@ -223,17 +223,21 @@ const appMallEdit: React.FC<ShopPreviewPropsType> = (props) => {
}
const getInfoList = async () => {
const param: any = {
current: 1,
pageSize: 1,
type: 2,
// recommendLabel: [2, 3],
}
const res = await getManageContentInformationPage(param)
if (res.code === 1000 && res.data.data) {
return res.data.data[0].title
try {
const param: any = {
current: 1,
pageSize: 1,
type: 2,
// recommendLabel: [2, 3],
}
const res = await getManageContentInformationPage(param)
if (res.code === 1000 && res.data.data && res.data.data.length > 0) {
return res.data.data[0].title
}
return ''
} catch (error) {
return ''
}
return ''
}
const _getRecommendShopData = async (shopDetails: any[]): Promise<any> => {
......
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