From de7e39996782df5bfdb38d4c98ae6ef1650322c8 Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Tue, 3 Jan 2023 18:49:19 +0800 Subject: [PATCH] update all repos --- unitool.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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') {