Commit 12abfa22 by 前端

优化

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