What:
报错Avoid using non-primitive value as key, use string/number value instead.
Why:
在for循环中,key值可能重复或者写错了
How:
检查Vue开发者工具
发现新增item的key值被定义为对象了,去找新增item的代码
发现是插件nanoid用法错误
这才是正确的。
What:
报错Avoid using non-primitive value as key, use string/number value instead.
Why:
在for循环中,key值可能重复或者写错了
How:
检查Vue开发者工具
发现新增item的key值被定义为对象了,去找新增item的代码
发现是插件nanoid用法错误
这才是正确的。