今天发现使用el-upload上传文件,上传没有问题,点详情看文件时就会报一个错误,错误如下:
TypeError: Cannot create property ‘uid’ on string ‘https://xxxx.com/upload/20230506/1683346602758.png’
上传多张图片 传值 是 ['/service/soilTesting',/service/soilTesting]就报错了
后来查了文档
fileList 要求是数组对象格式,不是 数组
然后就把 数组改成 这样就可以了 [ { url: '/service/soilTesting'}, {url: '/service/soilTesting }]
- 组件 el-upload TypeError property 错误组件el-upload typeerror property properties typeerror undefined reading properties typeerror undefined uncaught properties typeerror reading cannot addeventlistener typeerror uncaught property typeerror undefined uncaught property properties typeerror express reading typeerror undefined property cannot typeerror non-mysql undefined property vuedraggable typescript properties typeerror