Browse Source

修复bug

laiguoran 4 năm trước cách đây
mục cha
commit
39d2224d3f
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      app/service/tender_info.js

+ 2 - 1
app/service/tender_info.js

@@ -346,7 +346,8 @@ module.exports = app => {
             if (!info) {
                 return false;
             }
-            const shenpiInfo = !info.shenpi || info.shenpi === null || info.shenpi === '' ? defaultInfo.shenpi : JSON.parse(info.shenpi);
+            const defaultShenpiInfo = JSON.parse(JSON.stringify(defaultInfo.shenpi));
+            const shenpiInfo = !info.shenpi || info.shenpi === null || info.shenpi === '' ? defaultShenpiInfo : JSON.parse(info.shenpi);
             return shenpiInfo;
         }
     }