fix: 增加重试接口
This commit is contained in:
parent
404807fc7f
commit
e37e08988b
|
@ -724,24 +724,28 @@
|
|||
|
||||
/* 验证后 最终提交 */
|
||||
finalSubmit() {
|
||||
this.loading = true;
|
||||
const self = this;
|
||||
let data = {
|
||||
this.loading = true;
|
||||
setTimeout(() => {
|
||||
this.loading = false;
|
||||
}, 2000)
|
||||
|
||||
if (this.goods.send_status === 3 || this.goods.send_status === 4) {
|
||||
let params = {
|
||||
token: localStorage.getItem("token"),
|
||||
code_batch_id: this.code_batch_id,
|
||||
channel_user_id: this.form.receive_account
|
||||
}
|
||||
this.resetSubmit(params); // 重试
|
||||
} else {
|
||||
let params = {
|
||||
key: this.key,
|
||||
code_batch_id: this.code_batch_id,
|
||||
token: localStorage.getItem("token"),
|
||||
account: this.form.receive_account,
|
||||
receive_mode: 2
|
||||
};
|
||||
|
||||
setTimeout(() => {
|
||||
this.loading = false;
|
||||
}, 2000)
|
||||
|
||||
if (this.goods.send_status === 3 || this.goods.send_status === 4) {
|
||||
this.resetSubmit(data); // 重试
|
||||
} else {
|
||||
this.submitOne(data); // 普通提交
|
||||
this.submitOne(params); // 普通提交
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue