update all repos
This commit is contained in:
parent
37d43944fa
commit
de7e399967
@ -311,8 +311,8 @@ export default {
|
||||
|
||||
uni.showLoading()
|
||||
let [errorUpload, { data, statusCode } = {}] = await uni.uploadFile({ url: this.makeServerUrl(url), filePath, name, header, formData })
|
||||
// 后台 Multer 处理 req.file = { destination, filename, originalname, path, mimetype, size }, 其中 path 包括了 destination 和 filename 的文件完整路径。
|
||||
// url 所在方法进一步处理后,通过 uploadFile 存在 data 里返回结果
|
||||
// 后台 Multer 处理 req.file = { destination, filename, originalname, path, mimetype, size }, 其中 path 包括了 destination 和 filename 的文件相对路径。
|
||||
// url 所在方法进一步处理后,通过 uni.uploadFile 存在 data 里返回结果
|
||||
uni.hideLoading()
|
||||
|
||||
if (typeof data === 'string') {
|
||||
|
Loading…
Reference in New Issue
Block a user