[Vue warn]: Error in callback for watcher "fileList": "TypeError: Cannot create prope

[Vue warn]: Error in callback for watcher "fileList": "TypeError: Cannot create prope

 

element ui做自定义上传时,返回的url地址要放到列表里边,如果直接push就会报错

[Vue warn]: Error in callback for watcher "fileList": "TypeError: Cannot create prope

 

 所以正确写法应该是

[Vue warn]: Error in callback for watcher "fileList": "TypeError: Cannot create prope

 

 传一个对象过去,name是你要展示的名字

[Vue warn]: Error in callback for watcher "fileList": "TypeError: Cannot create prope

 

 就不会报错了

 

上一篇:netcore3.1+vue ElementUI多文件带参数上传


下一篇:element的多图上传回显