优化 工具函数中的上传方法添加注释

This commit is contained in:
yuantao
2025-12-10 18:25:42 +08:00
parent 60749ed147
commit ea82349f1e

View File

@@ -338,6 +338,12 @@ class Tool {
})
})
}
/**
* 文件上传
* @param {String} filePath 文件临时路径
* @returns {Promise<Object>} 文件上传结果
*/
upload(filePath) {
return new Promise((resolve, reject) => {
uni.uploadFile({