You've already forked template-MP
优化 工具函数中的上传方法添加注释
This commit is contained in:
@@ -338,6 +338,12 @@ class Tool {
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 文件上传
|
||||
* @param {String} filePath 文件临时路径
|
||||
* @returns {Promise<Object>} 文件上传结果
|
||||
*/
|
||||
upload(filePath) {
|
||||
return new Promise((resolve, reject) => {
|
||||
uni.uploadFile({
|
||||
|
||||
Reference in New Issue
Block a user