Vue——解決[Vue warn]: Invalid prop: custom validator check failed for prop "index". found in錯誤


Invalid prop: custom validator check failed for prop "index".

錯誤重現:

使用element-ui的菜單,在SubMenu Attribute中有一個index的屬性,如果index的值從后端傳入,則可能出現這個錯誤。

代碼:

錯誤:

解決辦法:

 index的值不能有空格,並且要為字符串類型,我上面的錯誤就是因為jc.eid是一個int型。將其轉為字符串就不會報錯了。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



猜您在找 [Vue warn]: Invalid prop: custom validator check failed for prop "type". 解決Invalid prop: custom validator check failed for prop "index" 報錯[Vue warn]:Invalid prop:custom validator check failed for prop "percentage" vue.runtime.esm.js:593 [Vue warn]: Invalid prop: custom validator check failed for prop "value".報錯解決 [Vue warn]: Invalid prop: custom validator check failed for prop "xxx".問題 ant design for vue 解決 vue.esm.js?c5de:628 [Vue warn]: Invalid prop: custom validator check failed for prop "defaultValue". 的錯誤 Invalid prop: custom validator check failed for prop "***" vue.runtime.esm"> Invalid prop: custom validator check failed for prop "pagination" [Vue warn]: Invalid prop: type check failed for prop "index". Expected String with value "1", got Number with value 1.
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM
vue.runtime.esm Vue項目報錯:Invalid prop: custom validator check failed for prop "percentage".