vue element-ui [Vue warn]: Invalid prop: custom validator check failed for prop “index“.

vue element-ui [Vue warn]: Invalid prop: custom validator check failed for prop “index“.,第1张

报错的原因是index 必须是字符串

解决方法是转为字符串就可以

方法1 :

方法2 :toString() 字符串转换

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1323052.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-12
下一篇 2022-06-12

发表评论

登录后才能评论

评论列表(0条)

保存