update all repos

This commit is contained in:
陆柯 2023-01-03 18:49:19 +08:00
parent 37d43944fa
commit de7e399967

View File

@ -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') {