diff --git a/unitool.js b/unitool.js index 3c03b00..38cf7cd 100644 --- a/unitool.js +++ b/unitool.js @@ -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') {