huangjn преди 1 година
родител
ревизия
211565f36a
променени са 4 файла, в които са добавени 4 реда и са изтрити 5 реда
  1. 1 2
      src/config/index.json
  2. 1 1
      src/views/formula/edit.vue
  3. 1 1
      src/views/formula/edit1.vue
  4. 1 1
      src/views/formula/editnew.vue

+ 1 - 2
src/config/index.json

@@ -1,6 +1,5 @@
 {
-  "target1": "http://39.108.216.210:8090",
-  "target": "http://192.168.0.102:8090",
+  "target": "http://192.168.1.228:8090",
   "dev": {
     "port": 1888
   }

+ 1 - 1
src/views/formula/edit.vue

@@ -1438,7 +1438,7 @@ export default {
         }
       }
 
-      if(detail&&detail.scale>=0){
+      if (detail&&detail.scale!=null&&detail.scale>=0){
         this.isRetain = true;
         this.retainNum = detail.scale;
       }else{

+ 1 - 1
src/views/formula/edit1.vue

@@ -1541,7 +1541,7 @@ export default {
         }
       }
 
-    if(detail&&detail.scale>=0){
+    if(detail&&detail.scale!=null&&detail.scale>=0){
         this.isRetain = true;
         this.retainNum = detail.scale;
       }else{

+ 1 - 1
src/views/formula/editnew.vue

@@ -1539,7 +1539,7 @@ export default {
         }
       }
 
-      if(detail&&detail.scale>=0){
+      if (detail&&detail.scale!=null&&detail.scale>=0){
         this.isRetain = true;
         this.retainNum = detail.scale;
       }else{