Browse Source

Merge branch 'bug-fix-4737'

cxmo 4 months ago
parent
commit
ee71793cb9
1 changed files with 8 additions and 4 deletions
  1. 8 4
      src/components/selectUnit.vue

+ 8 - 4
src/components/selectUnit.vue

@@ -50,10 +50,14 @@ export default {
         }
     },
     watch:{
-        value(){
-            if(this.value){
-                this.unit = this.getUnitTrans(this.value)
-            }
+        value:{
+            handler(){
+                if(this.value){
+                    console.log('value',this.value)
+                    this.unit = this.getUnitTrans(this.value)
+                }
+            },
+            immediate:true
         }
     },
     data() {