定位bug:数组遍历map导致的
{(arr).map(i => (
<span>{i}</span>
))}
解决方法:数组加空值兼容即可
{(arr || []).map(i => (
<span>{i}</span>
))}
定位bug:数组遍历map导致的
{(arr).map(i => (
<span>{i}</span>
))}
解决方法:数组加空值兼容即可
{(arr || []).map(i => (
<span>{i}</span>
))}