elementUI Cannot create property ‘uid‘ on string

报错原因:
TypeError: Cannot create pr

operty ‘xxx’ on string ‘xxxx’,此类错误是赋值的类型错误

this.canonicalImage =result.data.item.picList//错误示范,piclist应为对象格式

this.canonicalImage =result.data.item.picList.map(item => {
       return {
         name: item,
         url: item
       }
});

猜你喜欢

转载自blog.csdn.net/weixin_42574985/article/details/127402657