修改字符处理

feature/0423
陈伟 11 months ago
parent 61573fbf95
commit 4d7a62d337
  1. 8
      src/views/store/Setting.vue

@ -139,7 +139,13 @@ export default {
// api
onFormSubmit (values) {
this.isLoading = true
Api.update({ form: { ...values, new_product_img_id: values.new_product_img_id.join(','), big_brand_img_id: values.big_brand_img_id.join(','), new_people_order_img_id: values.new_people_order_img_id.join(',') } })
const params = {
new_product_img_id: (values.new_product_img_id && values.new_product_img_id.join(',')) || '',
big_brand_img_id: (values.big_brand_img_id && values.big_brand_img_id.join(',')) || '',
new_people_order_img_id: (values.new_people_order_img_id && values.new_people_order_img_id.join(',')) || ''
}
Api.update({ form: { ...values, ...params } })
.then(result => this.$message.success(result.message, 1.5))
.finally(() => this.isLoading = false)
}

Loading…
Cancel
Save