Jelajahi Sumber

公式小数位问题

yangyj 1 tahun lalu
induk
melakukan
4cfa737564

+ 1 - 1
src/config/index.json

@@ -1,5 +1,5 @@
 {
-    "target": "http://192.168.0.109:8090",
+    "target": "http://127.0.0.1:8090",
     "dev": {
         "port": 1888
     }

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

@@ -1438,9 +1438,12 @@ export default {
         }
       }
 
-      if(detail&&detail.scale ){
+      if(detail&&detail.scale>=0){
         this.isRetain = true;
         this.retainNum = detail.scale;
+      }else{
+        this.isRetain = false;
+        this.retainNum=2
       }
     },
 

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

@@ -1567,9 +1567,12 @@ export default {
         }
       }
 
-      if(detail&&detail.scale ){
+    if(detail&&detail.scale>=0){
         this.isRetain = true;
         this.retainNum = detail.scale;
+      }else{
+        this.isRetain = false;
+        this.retainNum=2
       }
     },
 

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

@@ -1539,9 +1539,12 @@ export default {
         }
       }
 
-      if(detail.scale > -1){
+      if(detail&&detail.scale>=0){
         this.isRetain = true;
         this.retainNum = detail.scale;
+      }else{
+        this.isRetain = false;
+        this.retainNum=2
       }
     },