修复投诉不提示问题

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,
}).then(response => {
if (response.code == 1) {
return resolve();
return resolve(response.msg);
}
return reject(response.msg);
}).catch(e => { });

View File

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