diff --git a/pages/index/uploadPhoto.vue b/pages/index/uploadPhoto.vue index 9f88e92..ffa2582 100644 --- a/pages/index/uploadPhoto.vue +++ b/pages/index/uploadPhoto.vue @@ -238,12 +238,12 @@ export default { params.picturesDto = this.imageList; - uni.showModal({ - title: "查看imageList", - content: (JSON.stringify(params)), - showCancel: true, - success: function (res) {}, - }); + // uni.showModal({ + // title: "查看imageList", + // content: (JSON.stringify(params)), + // showCancel: true, + // success: function (res) {}, + // }); // return const res2 = await UploadArea(params); uni.showModal({ @@ -252,7 +252,7 @@ export default { showCancel: true, success: function (res) {}, }); - return + // return if (res2.succeed) { // 成功的处理 uni.showToast({ title: "上传成功", icon: "success", duration: 1500 }); @@ -262,9 +262,9 @@ export default { }); }, 1500); } - // else { - // uni.showToast({ title: res2.error || "上传失败", icon: "none" }); - // } + else { + uni.showToast({ title: res2.error || "上传失败", icon: "none" }); + } }, }, };