vue报错 [Vue warn]: Invalid prop: type check failed for prop "name". Expected String with value "4", got Number with value 4. 当出现这个错误原因在于写法上漏了数字和字符串的类型关系 引用了我们定义的数组和变量或者函数 这个问题就是我们点击:name默认的类型是字符串类型,而我们自己定义的是数字类型所以我们需要改一下就好 希望上述能帮到你…
vue.esm.js?efeb:628 [Vue warn]: Invalid prop: type check failed for prop "defaultActive". Expected String with value "0", got Number with value 0. 问题解决:active:"0", 0加上双引号即可. <el-menu :default-active="navBar.active&qu…
一.报错截图 [Vue warn]: Invalid prop: type check failed for prop "jingzinum". Expected Number with value NaN, got String with value "fuNum". 二.报错代码 <!DOCTYPE html> <html lang="en"> <head> <meta charset="U…