Lind пре 3 година
родитељ
комит
696ad1db36
1 измењених фајлова са 4 додато и 1 уклоњено
  1. 4 1
      src/pages/device/Product/Detail/BaseInfo/index.tsx

+ 4 - 1
src/pages/device/Product/Detail/BaseInfo/index.tsx

@@ -68,7 +68,10 @@ const BaseInfo = () => {
   const getDetailInfo = () => {
     service.getProductDetail(id || '').subscribe((data) => {
       if (data) {
-        productModel.current = data;
+        productModel.current = {
+          ...productModel.current,
+          ...data,
+        };
       }
     });
   };