diff --git a/src/views/dataCenter/goods/Create.vue b/src/views/dataCenter/goods/Create.vue index 89163a3..1360f69 100644 --- a/src/views/dataCenter/goods/Create.vue +++ b/src/views/dataCenter/goods/Create.vue @@ -161,7 +161,7 @@ @change="onForceUpdate()" > 单规格 - 多规格 + diff --git a/src/views/dataCenter/goods/Update.vue b/src/views/dataCenter/goods/Update.vue index a8cec74..5432fe2 100644 --- a/src/views/dataCenter/goods/Update.vue +++ b/src/views/dataCenter/goods/Update.vue @@ -506,6 +506,16 @@ export default { checkList:[] } }, + watch: { + // 监听商品ID变化 + '$route.query.goodsId' (val) { + if (val) { + this.goodsId = val + this.initData() + this.getDataList() + } + } + }, created () { // 初始化数据 this.initData()