Browse Source

fix(instance): instance

Lind 3 years ago
parent
commit
696ad1db36
1 changed files with 4 additions and 1 deletions
  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,
+        };
       }
     });
   };