소스 검색

fix(instance): instance

Lind 4 년 전
부모
커밋
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,
+        };
       }
     });
   };