解决vue.esm.js:578 [Vue warn]: Invalid prop: type check failed for prop “value“. Expected String, Numb

解决 vue.esm.js:578 [Vue warn]: Invalid prop: type check failed for prop "value". Expected String, Number, got Undefined.

具体信息

51vue.esm.js:578 [Vue warn]: Invalid prop: type check failed for prop "value". Expected String, Number, got Undefined.

found in

---> 
       
         
           
             
               
                 
                   
                     
                        at src\views\marketing\coupon-add.vue
                         
at src\views\Main.vue at src\app.vue warn @ vue.esm.js:578 assertProp @ vue.esm.js:1611 validateProp @ vue.esm.js:1539 loop @ vue.esm.js:3305 initProps @ vue.esm.js:3338 initState @ vue.esm.js:3281 Vue._init @ vue.esm.js:4558 Override.Vue._init @ vue-i18n.common.js:110 VueComponent @ vue.esm.js:4728 createComponentInstanceForVnode @ vue.esm.js:4242 init @ vue.esm.js:4059 createComponent @ vue.esm.js:5512 createElm @ vue.esm.js:5460 createChildren @ vue.esm.js:5586 createElm @ vue.esm.js:5488 createChildren @ vue.esm.js:5586 createElm @ vue.esm.js:5488 patch @ vue.esm.js:5995 Vue._update @ vue.esm.js:2637 updateComponent @ vue.esm.js:2765 get @ vue.esm.js:3115 Watcher @ vue.esm.js:3104 mountComponent @ vue.esm.js:2772 11.Vue$3.$mount @ vue.esm.js:8429 11.Vue$3.$mount @ vue.esm.js:10790 init @ vue.esm.js:4065 createComponent @ vue.esm.js:5512 createElm @ vue.esm.js:5460 patch @ vue.esm.js:5995 Vue._update @ vue.esm.js:2637 updateComponent @ vue.esm.js:2765 get @ vue.esm.js:3115 Watcher @ vue.esm.js:3104 mountComponent @ vue.esm.js:2772 11.Vue$3.$mount @ vue.esm.js:8429 11.Vue$3.$mount @ vue.esm.js:10790 init @ vue.esm.js:4065 createComponent @ vue.esm.js:5512 createElm @ vue.esm.js:5460 createChildren @ vue.esm.js:5586 createElm @ vue.esm.js:5488 patch @ vue.esm.js:5995 Vue._update @ vue.esm.js:2637 updateComponent @ vue.esm.js:2765 get @ vue.esm.js:3115 Watcher @ vue.esm.js:3104 mountComponent @ vue.esm.js:2772 11.Vue$3.$mount @ vue.esm.js:8429 11.Vue$3.$mount @ vue.esm.js:10790 init @ vue.esm.js:4065 createComponent @ vue.esm.js:5512 createElm @ vue.esm.js:5460 createChildren @ vue.esm.js:5586 createElm @ vue.esm.js:5488 patch @ vue.esm.js:5995 Vue._update @ vue.esm.js:2637 updateComponent @ vue.esm.js:2765 get @ vue.esm.js:3115 Watcher @ vue.esm.js:3104 mountComponent @ vue.esm.js:2772 11.Vue$3.$mount @ vue.esm.js:8429 11.Vue$3.$mount @ vue.esm.js:10790 init @ vue.esm.js:4065 createComponent @ vue.esm.js:5512 createElm @ vue.esm.js:5460 updateChildren @ vue.esm.js:5749 patchVnode @ vue.esm.js:5840 patch @ vue.esm.js:6000 Vue._update @ vue.esm.js:2647 updateComponent @ vue.esm.js:2765 get @ vue.esm.js:3115 run @ vue.esm.js:3192 flushSchedulerQueue @ vue.esm.js:2954 (匿名) @ vue.esm.js:1813 flushCallbacks @ vue.esm.js:1734 153vue.esm.js:578 [Vue warn]: Invalid prop: type check failed for prop "value". Expected String, Number, got Undefined. found in ---> at src\views\marketing\coupon-add.vue
at src\views\Main.vue at src\app.vue warn @ vue.esm.js:578 assertProp @ vue.esm.js:1611 validateProp @ vue.esm.js:1539 updateChildComponent @ vue.esm.js:2825 prepatch @ vue.esm.js:4076 patchVnode @ vue.esm.js:5829 updateChildren @ vue.esm.js:5726 patchVnode @ vue.esm.js:5840 updateChildren @ vue.esm.js:5726 patchVnode @ vue.esm.js:5840 patch @ vue.esm.js:6000 Vue._update @ vue.esm.js:2647 updateComponent @ vue.esm.js:2765 get @ vue.esm.js:3115 run @ vue.esm.js:3192 flushSchedulerQueue @ vue.esm.js:2954 (匿名) @ vue.esm.js:1813 flushCallbacks @ vue.esm.js:1734

处理过程

解决vue.esm.js:578 [Vue warn]: Invalid prop: type check failed for prop “value“. Expected String, Numb_第1张图片

上图箭头处的productUuid写错了  

后端接口返回的是produuid   前端引用写成productUuid

更改后问题解决

你可能感兴趣的:(vue,Html,vue.js,javascript,前端)