ソースを参照

fix when value is null

baiyaaaaa 8 年 前
コミット
3206c02b40
1 ファイル変更1 行追加1 行削除
  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,