Commit 6153b598 authored by GuanHua's avatar GuanHua

fix: 商品名称出现html标签的问题

parent f70b86d2
......@@ -21,14 +21,18 @@ export const promptCommodityColumn = [
dataIndex: "name",
width: 300,
ellipsis: true,
// eslint-disable-next-line react/display-name
render: (name: any) => <div dangerouslySetInnerHTML={{ __html: name }}></div>
},
{
title: "品类",
// render: (_, record) => record.customerCategory.name
ellipsis: true,
render: (_, record) => record.customerCategory ? record.customerCategory.name : ""
},
{
title: "品牌",
// render: (_, record) => record.brand.name
ellipsis: true,
render: (_, record) => record.brand ? record.brand.name : ""
},
{
title: "价格",
......@@ -50,6 +54,8 @@ export const integralCommodityColumn = [
dataIndex: "name",
width: 300,
ellipsis: true,
// eslint-disable-next-line react/display-name
render: (name: any) => <div dangerouslySetInnerHTML={{ __html: name }}></div>
},
{
title: "需要积分",
......
......@@ -21,14 +21,18 @@ export const promptCommodityColumn = [
dataIndex: "name",
width: 300,
ellipsis: true,
// eslint-disable-next-line react/display-name
render: (name: any) => <div dangerouslySetInnerHTML={{ __html: name }}></div>
},
{
title: "品类",
// render: (_, record) => record.customerCategory.name
ellipsis: true,
render: (_, record) => record.customerCategory ? record.customerCategory.name : ""
},
{
title: "品牌",
// render: (_, record) => record.brand.name
ellipsis: true,
render: (_, record) => record.brand ? record.brand.name : ""
},
{
title: "价格",
......@@ -50,6 +54,8 @@ export const integralCommodityColumn = [
dataIndex: "name",
width: 300,
ellipsis: true,
// eslint-disable-next-line react/display-name
render: (name: any) => <div dangerouslySetInnerHTML={{ __html: name }}></div>
},
{
title: "需要积分",
......
......@@ -21,14 +21,18 @@ export const promptCommodityColumn = [
dataIndex: "name",
width: 300,
ellipsis: true,
// eslint-disable-next-line react/display-name
render: (name: any) => <div dangerouslySetInnerHTML={{ __html: name }}></div>
},
{
title: "品类",
// render: (_, record) => record.customerCategory.name
ellipsis: true,
render: (_, record) => record.customerCategory ? record.customerCategory.name : ""
},
{
title: "品牌",
// render: (_, record) => record.brand.name
ellipsis: true,
render: (_, record) => record.brand ? record.brand.name : ""
},
{
title: "价格",
......@@ -50,6 +54,8 @@ export const integralCommodityColumn = [
dataIndex: "name",
width: 300,
ellipsis: true,
// eslint-disable-next-line react/display-name
render: (name: any) => <div dangerouslySetInnerHTML={{ __html: name }}></div>
},
{
title: "需要积分",
......
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