Browse Source

fix when value is null

baiyaaaaa 8 năm trước cách đây
mục cha
commit
3206c02b40
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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,