Commit 2ba05897 authored by GuanHua's avatar GuanHua

fix: 店铺和渠道装修问题

parent 6ae4a531
......@@ -218,8 +218,8 @@ 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)
if(item.categoryId) {
const categoryDetail: any = await fetchCategoryById(item.categoryId)
let floorLineConfigItem = {}
floorLineKeys.push(String(initIndex + 1))
......@@ -228,7 +228,7 @@ const ChannelPreview: React.FC<ChannelPreviewPropsType> = (props) => {
[String(initIndex + 1)]: {
"componentName": "ShopFloorLine",
"props": {
title: item.name
title: item.categoryName
},
"childNodes": [String(initIndex + 2), String(initIndex + 3)]
}
......
......@@ -166,8 +166,8 @@ 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)
if (item.categoryId ){
const categoryDetail: any = await fetchCategoryById(item.categoryId)
let floorLineConfigItem = {}
floorLineKeys.push(String(initIndex + 1))
......@@ -176,7 +176,7 @@ const ShopEdit: React.FC<ShopEditPropsType> = (props) => {
[String(initIndex + 1)]: {
"componentName": "ShopFloorLine",
"props": {
title: item.name
title: item.categoryName
},
"childNodes": [String(initIndex + 2), String(initIndex + 3)]
}
......
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