修复投诉不提示问题
This commit is contained in:
parent
8d643b8ac2
commit
3a09268465
|
@ -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 => { });
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue