sys %!s(int64=3) %!d(string=hai) anos
pai
achega
37f2a78434
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      components/en-from/en-select/en-select.vue

+ 4 - 2
components/en-from/en-select/en-select.vue

@@ -50,7 +50,7 @@ export default {
   data() {
     return {
       inputValue: [],
-      optionName: '23432432',
+      optionName: '',
       labelWidth: 0,
       showPicker:false
     }
@@ -76,7 +76,9 @@ export default {
   methods: {
     setValue(){
       let value=this.value
-      if(typeof value==='string'){
+      if(!value){
+        value=[]
+      }else if(typeof value==='string'){
         value=value.split(',')
       }
       if(this.inputValue!==value){