项目运行报错

Avoid using non-primitive value as key, use string/number value instead.
意思是:避免使用非基本值作为键,而是使用字符串/数字值。

Duplicate keys detected: ‘[object Object]’. This may cause an update error.
意思是:检测到重复键:’[object object]’。这可能会导致更新错误。

报错处理:Avoid using non-primitive value as key, use string/number value instead
项目代码:
报错处理:Avoid using non-primitive value as key, use string/number value instead

报错的意思是 不要用对象或是数组作为key,用string或value作为key

我们可以将key的值改为 adIndex ;即可
报错处理:Avoid using non-primitive value as key, use string/number value instead

相关文章:

  • 2022-12-23
  • 2021-05-29
  • 2022-01-07
  • 2022-01-11
  • 2021-11-19
  • 2021-12-31
  • 2021-09-21
  • 2021-05-11
猜你喜欢
  • 2021-11-21
  • 2022-01-13
  • 2021-09-20
  • 2021-04-18
  • 2021-10-17
相关资源
相似解决方案