Commit 7ea08af3 authored by GuanHua's avatar GuanHua

fix: 店铺装修品类找不到的问题

parent 42508802
......@@ -216,6 +216,7 @@ const ChannelPreview: React.FC<ChannelPreviewPropsType> = (props) => {
const firstCategory: any = await fetchFirstCategory()
for (const item of firstCategory) {
if(item.id) {
const categoryDetail: any = await fetchCategoryById(item.id)
let floorLineConfigItem = {}
......@@ -259,6 +260,8 @@ const ChannelPreview: React.FC<ChannelPreviewPropsType> = (props) => {
initIndex += 100
}
}
mallLayoutConfig["0"].childNodes = [...mallLayoutConfig["0"].childNodes, ...floorLineKeys, serviceAdvertConfig.key, CommonTitle2Config.key, AboutUsConfig.key, InformationConfig.key, FooterConfig.key]
const config = {
......
......@@ -166,6 +166,7 @@ const ShopEdit: React.FC<ShopEditPropsType> = (props) => {
const firstCategory: any = await fetchFirstCategory()
for (const item of firstCategory) {
if (item.id ){
const categoryDetail: any = await fetchCategoryById(item.id)
let floorLineConfigItem = {}
......@@ -208,6 +209,8 @@ const ShopEdit: React.FC<ShopEditPropsType> = (props) => {
initIndex += 100
}
}
mallLayoutConfig["0"].childNodes = [...mallLayoutConfig["0"].childNodes, ...floorLineKeys, serviceAdvertConfig.key, FooterConfig.key]
const config = {
...mallLayoutConfig,
......
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