Explorar el Código

fix when value is null

baiyaaaaa hace 8 años
padre
commit
3206c02b40
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/cascader/src/main.vue

+ 1 - 1
packages/cascader/src/main.vue

@@ -148,7 +148,7 @@ export default {
 
   data() {
     return {
-      currentValue: this.value,
+      currentValue: this.value || [],
       menu: null,
       debouncedInputChange() {},
       menuVisible: false,