fix: 🐛 解决商品编辑中重新选择分类、商品参数不更新问题

master
Yer 2023-08-24 16:40:28 +08:00
parent 39547b542c
commit 2bcefc1306
1 changed files with 4 additions and 2 deletions

View File

@ -953,8 +953,7 @@ export default {
/** 查询品牌列表 */
this.getGoodsBrandList();
/** 查询商品参数 */
this.GET_GoodsParams();
/** 查询店铺商品分类 */
this.GET_ShopGoodsLabel();
this.GET_GoodsUnit();
@ -972,6 +971,8 @@ export default {
}
this.firstData.goodsType &&
(this.baseInfoForm.goodsType = this.firstData.goodsType);
/** 查询商品参数 */
this.GET_GoodsParams();
},
// sku
renderGoodsDetailSku(skuList) {
@ -1039,6 +1040,7 @@ export default {
/** 根据当前分类id查询商品应包含的参数 */
GET_GoodsParams() {
this.goodsParams = []
API_GOODS.getCategoryParamsListDataSeller(this.categoryId).then(
(response) => {
if (!response || response.length <= 0) {