u
This commit is contained in:
parent
da8bb9a4a5
commit
11d2e98ef9
@ -265,7 +265,7 @@ export default {
|
||||
// multer 不会自动处理 JSON 数据,必须前后端配合处理
|
||||
formData[key] = JSON.stringify(formData[key])
|
||||
}
|
||||
// 在 Fileloader/fileloader.js 里,已经不再依赖 _passtoken,而且 header 在 cloudflare 代理之后也被过滤掉了,因此不再使用这一句: header._passtoken = uni.getStorageSync('_passtoken')
|
||||
// 在 Fileloader/fileloader.js 里,已经不再依赖 _passtoken,而且 header 在被 nginx 或 cloudflare (没搞清楚是谁干的)代理之后也被过滤掉了,因此不再使用这一句: header._passtoken = uni.getStorageSync('_passtoken')
|
||||
|
||||
uni.showLoading()
|
||||
let [errorUpload, { data, statusCode } = {}] = await uni.uploadFile({ url: this.makeServerUrl(url), filePath, name, header, formData })
|
||||
|
Loading…
Reference in New Issue
Block a user