Commit 2ba05897 authored by GuanHua's avatar GuanHua

fix: 店铺和渠道装修问题

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