Commit 12abfa22 by 前端

优化

1 parent 105304b7
...@@ -55,13 +55,14 @@ const uploadFile = function (filePath) { ...@@ -55,13 +55,14 @@ const uploadFile = function (filePath) {
console.log(res, 444); console.log(res, 444);
if (res.statusCode != 200) { if (res.statusCode != 200) {
reject(new Error("上传错误:" + JSON.stringify(res))); reject(new Error("上传错误:" + JSON.stringify(res)));
} } else {
uni.removeSavedFile({ uni.removeSavedFile({
filePath, filePath,
complete: function (res) { complete: function (res) {
console.log(res); console.log(res);
}, },
}); });
}
resolve(aliyunServerURL + aliyunFileKey); resolve(aliyunServerURL + aliyunFileKey);
}, },
fail: function (err) { fail: function (err) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!