@@ -259,7 +259,6 @@ export default {
// filePath 为临时文件的路径
// formData 为请求附带的提交数据
async HTTP_UPLOAD(filePath, formData) {
const [err, res] = await this.UPLOAD('/learun/adms/annexes/wxupload', filePath, formData)
return this.handleResult(err, res)
@@ -277,7 +276,7 @@ export default {
// url 为请求地址
// formData 为请求附带的提交数据
async HTTP_DOWNLOAD(formData) {
const [err, res] = await this.DOWNLOAD('/annexes/wxdown', formData)
const [err, res] = await this.DOWNLOAD('/learun/adms/ annexes/wxdown', formData)
return this.handleResult(err, res)
},
@@ -342,7 +341,7 @@ export default {
// })
// })
// #endif
console.log(filePath,'filePath上传内')
// #ifndef MP-DINGTALK
return uni.uploadFile({
url: uploadUrl,
@@ -352,11 +351,9 @@ export default {
formData: query
}).then(([err, result]) => {
if (!err) {
result.data = JSON.parse(result.data)
return [null, result]
} else {
return [err, null]
}