Commit 28668385 authored by 靳野's avatar 靳野

fix:修复价格与库存单位显示问题 切换

parent 8879b7db
......@@ -464,7 +464,7 @@ const FormPriceOrStock = forwardRef((props, ref) => {
setMergeTable(Boolean(editData.secondSpecValue && editData.secondSpecValue.length));
setTableData(fliterSkuListSortData(skuList) || []);
}
}, [customer.isEdit, customer.isUseCache, editData]);
}, [customer.isEdit, customer.isUseCache, editData, customer.isGold]);
return (
<>
......
......@@ -377,7 +377,7 @@ const ServiceGoods = options => {
}
setPageLoading(false);
})();
}, [SourceData, categoryIds]);
}, [SourceData]);
useEffect(() => {
if (options.visible) {
......@@ -443,9 +443,9 @@ const ServiceGoods = options => {
const onCategoryChange = e => {
setCategoryIds(e);
let txt = '';
if (categoryIds.includes(GoldCategory)) {
if (e.includes(GoldCategory)) {
txt = '千克';
} else if (e.includes(GoldCategory)) {
} else {
txt = '';
}
if (txt) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment