mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-17 16:35:53 +08:00
fix: 🐛 解决商品编辑中重新选择分类、商品参数不更新问题
This commit is contained in:
@@ -953,8 +953,7 @@ export default {
|
|||||||
|
|
||||||
/** 查询品牌列表 */
|
/** 查询品牌列表 */
|
||||||
this.getGoodsBrandList();
|
this.getGoodsBrandList();
|
||||||
/** 查询商品参数 */
|
|
||||||
this.GET_GoodsParams();
|
|
||||||
/** 查询店铺商品分类 */
|
/** 查询店铺商品分类 */
|
||||||
this.GET_ShopGoodsLabel();
|
this.GET_ShopGoodsLabel();
|
||||||
this.GET_GoodsUnit();
|
this.GET_GoodsUnit();
|
||||||
@@ -972,6 +971,8 @@ export default {
|
|||||||
}
|
}
|
||||||
this.firstData.goodsType &&
|
this.firstData.goodsType &&
|
||||||
(this.baseInfoForm.goodsType = this.firstData.goodsType);
|
(this.baseInfoForm.goodsType = this.firstData.goodsType);
|
||||||
|
/** 查询商品参数 */
|
||||||
|
this.GET_GoodsParams();
|
||||||
},
|
},
|
||||||
// 渲染sku数据
|
// 渲染sku数据
|
||||||
renderGoodsDetailSku(skuList) {
|
renderGoodsDetailSku(skuList) {
|
||||||
@@ -1039,6 +1040,7 @@ export default {
|
|||||||
|
|
||||||
/** 根据当前分类id查询商品应包含的参数 */
|
/** 根据当前分类id查询商品应包含的参数 */
|
||||||
GET_GoodsParams() {
|
GET_GoodsParams() {
|
||||||
|
this.goodsParams = []
|
||||||
API_GOODS.getCategoryParamsListDataSeller(this.categoryId).then(
|
API_GOODS.getCategoryParamsListDataSeller(this.categoryId).then(
|
||||||
(response) => {
|
(response) => {
|
||||||
if (!response || response.length <= 0) {
|
if (!response || response.length <= 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user