Commit fd9e08a3 authored by GuanHua's avatar GuanHua

fix: 修改商城首页接口路径

parent 7626ab73
......@@ -25,13 +25,13 @@ const Category: React.FC<CategoryPropsType> = (props) => {
useEffect(() => {
let getCategoryFn
let params: any = {}
const params: any = {}
let headers = {}
switch (type) {
case LAYOUT_TYPE.mall:
if (mallTemplateId) {
params.templateId = mallTemplateId
getCategoryFn = PublicApi.getTemplatePlatformFindAllCategoryTree
getCategoryFn = PublicApi.getTemplateWebCategoryWebFindEnterpriseCategoryTree
fetchCategoryList(getCategoryFn, params, type)
}
break
......
......@@ -4,8 +4,10 @@
margin: 0 auto;
z-index: 9;
.anchor {
position: absolute;
overflow: hidden;
top: 20px;
width: 88px;
left: -128px;
......@@ -82,4 +84,4 @@
}
}
}
}
\ No newline at end of file
}
......@@ -28,7 +28,7 @@ class SiteStore implements ISiteModule {
siteId: this.siteId
}
const res = await PublicApi.getTemplatePlatformFindUseTemplateBySite(param)
const res = await PublicApi.getTemplateWebPageTemplateWebFindEnterpriseTemplate(param)
runInAction(() => {
this.mallTemplateInfo = res.data || {}
this.mallTemplateId = this.mallTemplateInfo.id
......
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