修复投诉不提示问题

This commit is contained in:
TOP糯米 2023-04-02 19:10:50 +08:00
parent 8d643b8ac2
commit 3a09268465
2 changed files with 5 additions and 3 deletions

View File

@ -72,7 +72,7 @@ export default {
data: data, data: data,
}).then(response => { }).then(response => {
if (response.code == 1) { if (response.code == 1) {
return resolve(); return resolve(response.msg);
} }
return reject(response.msg); return reject(response.msg);
}).catch(e => { }); }).catch(e => { });

View File

@ -78,8 +78,10 @@ export default {
imgs: this.image, imgs: this.image,
desc: this.content, desc: this.content,
}) })
.then((response) => { .then((msg) => {
console.log(response); this.$utils.toast(msg).then(() => {
this.$utils.toPage("", {}, "back");
});
}) })
.catch((e) => { .catch((e) => {
this.$utils.toast(e); this.$utils.toast(e);