master
wangdong 5 months ago
parent f32d01281c
commit d7e035eb4a
  1. 7
      src/views/market/Recommended.vue

@ -193,12 +193,13 @@ export default {
//
handleSubmit (e) {
this.confirmLoading = true
const data = { ...this.record }
const data = JSON.parse(JSON.stringify(this.record))
// eslint-disable-next-line no-unused-expressions
data.params.auto.category.length > 0 ? data.params.auto.category = data.params.auto.category.map(item => item.value) : data.params.auto.category = []
console.log(data.params.auto.category)
Api.update(this.key, { form: data })
.then(result => this.$message.success(result.message, 1.5))
.then(result => {
this.$message.success(result.message, 1.5)
})
.finally(result => this.confirmLoading = false)
},

Loading…
Cancel
Save