From 0230b22090a134c2ec6f364f1dbe769ed49d7a12 Mon Sep 17 00:00:00 2001 From: wyy <3234929097@qq.com> Date: Thu, 23 Nov 2023 17:34:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/prod.js | 15 ++++------ .../prod/prodInfo/components/sku-table.vue | 1 - .../prod/prodInfo/components/sku-tag.vue | 28 ++++++++----------- 3 files changed, 17 insertions(+), 27 deletions(-) diff --git a/src/stores/prod.js b/src/stores/prod.js index 4ec8c90..65ce0e8 100644 --- a/src/stores/prod.js +++ b/src/stores/prod.js @@ -18,24 +18,19 @@ export const scoreProdStore = defineStore('prod', { } }, actions: { - // eslint-disable-next-line no-unused-vars - updateSkuTags (state, skuTags) { + updateSkuTags (skuTags) { this.skuTags = skuTags }, - // eslint-disable-next-line no-unused-vars - addSkuTag (state, skuTag) { + addSkuTag (skuTag) { this.skuTags.push(skuTag) }, - // eslint-disable-next-line no-unused-vars - removeSkuTag (state, tagIndex) { + removeSkuTag (tagIndex) { this.skuTags.splice(tagIndex, 1) }, - // eslint-disable-next-line no-unused-vars - removeSkuTagItem (state, { tagIndex, tagItemIndex }) { + removeSkuTagItem ({ tagIndex, tagItemIndex }) { this.skuTags[tagIndex].tagItems.splice(tagItemIndex, 1) }, - // eslint-disable-next-line no-unused-vars - addSkuTagItem (state, { tagIndex, tagItem }) { + addSkuTagItem ({ tagIndex, tagItem }) { this.skuTags[tagIndex].tagItems.push(tagItem) } } diff --git a/src/views/modules/prod/prodInfo/components/sku-table.vue b/src/views/modules/prod/prodInfo/components/sku-table.vue index 1d40a89..9a6813c 100644 --- a/src/views/modules/prod/prodInfo/components/sku-table.vue +++ b/src/views/modules/prod/prodInfo/components/sku-table.vue @@ -142,7 +142,6 @@