使用next-seo的LocalBusinessJsonLd模式的数组

问题描述

嗨,我正在尝试在下一个js应用程序中添加多个localbusiness模式, 我正在为此使用next-seo包

import { LocalBusinessJsonLd } from 'next-seo'

{locations.map((location) => (
    <LocalBusinessJsonLd 
      type="Store"
      name={location.node.name}
      description={location.node.description}
      telephone={location.node.phone}
      address={{
        streetAddress: `${location.node.street}`,addressLocality: `${location.node.city}`,postalCode: `${location.node.postalCode}`,addressCountry: `${location.node.countryIso}`,}}
    />
))}

但是当我检查它仅显示模式中的最后一个位置而不显示模式数组时

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)