From d7e035eb4a0271bf78165dea6587aabc6c0b2280 Mon Sep 17 00:00:00 2001 From: wangdong <1551135706@qq.com> Date: Sun, 16 Jun 2024 17:42:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/market/Recommended.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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) },