onChooseImage(){
//还能再选几张图片
let max = MAX_WORDS_NUM - this.data.images.length
wx.chooseMedia({
count:max,
sizeType:[‘original’, ‘compressed’],
sourceType:[‘album’, ‘camera’],
success: (res) =>{
console.log(res)
this.setData({
images:this.data.images.concat(res.tempFiles)//老师原来这里的是tempfilepath,不知道路径是是不是错了
})
},
})
}
这是两个报错
WAServiceMainContext.js?t=wechat&s=1683682435400&v=2.28.1:1 invoke wx.getUserProfile too frequently(env: Windows,mp,1.06.2303220; lib: 2.28.1)
[渲染层网络层错误] Failed to load local image resource /pages/blog-edit/[object%20Object]
the server responded with a status of 500 (HTTP/1.1 500 Internal Server Error)
(env: Windows,mp,1.06.2303220; lib: 2.28.1)