瀏覽代碼

fix(instance): instance

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,
+        };
       }
     });
   };