diff --git a/src/views/market/Recommended.vue b/src/views/market/Recommended.vue index fb98bb9..b58bea2 100644 --- a/src/views/market/Recommended.vue +++ b/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) },