Showing
1 changed file
with
1 additions
and
1 deletions
| @@ -247,7 +247,7 @@ export default { | @@ -247,7 +247,7 @@ export default { | ||
| 247 | const payload = { ...this.form } | 247 | const payload = { ...this.form } |
| 248 | console.log('onSubmit__payload', payload) | 248 | console.log('onSubmit__payload', payload) |
| 249 | try { | 249 | try { |
| 250 | - await updateApi(payload) | 250 | + await createApi(payload) |
| 251 | uni.showToast({ title: '保存成功', icon: 'success' }) | 251 | uni.showToast({ title: '保存成功', icon: 'success' }) |
| 252 | setTimeout(() => { uni.redirectTo({ url: '/pages/order_list/index' }) }, 300) | 252 | setTimeout(() => { uni.redirectTo({ url: '/pages/order_list/index' }) }, 300) |
| 253 | } catch (e) { | 253 | } catch (e) { |