Open yangbo5207 opened 7 years ago
需要手动转码 encodeURIComponent
需要在header中设置charset=UTF-8
需要在header中设置content-type为接口中需要的类型
promise(wx.request)({ url: `${config.communityDomainDev}/v5/comment`, method: 'POST', data: { objectId: postid, type: type, content: encodeURIComponent(_this.data.inputValue) }, header: { Authorization: authorization, 'content-type': 'application/x-www-form-urlencoded;charset=UTF-8' } })
需要手动转码 encodeURIComponent
需要在header中设置charset=UTF-8
需要在header中设置content-type为接口中需要的类型