diff --git a/src/components/cityselect/src/cityselect.vue b/src/components/cityselect/src/cityselect.vue
index e508656e..11f4c39f 100644
--- a/src/components/cityselect/src/cityselect.vue
+++ b/src/components/cityselect/src/cityselect.vue
@@ -24,7 +24,7 @@
-
+
-
@@ -178,8 +178,8 @@
}
this.clearNavTxt(index);
-
- if (index === this.columnNum || children.length <= 0) {
+ // 修复没有子级时children.length报错
+ if (index === this.columnNum || !children || children.length <= 0) {
if (index !== this.columnNum) {
for (let i = this.columnNum; i >= 0; i--) {
if (i > index) {
@@ -268,4 +268,10 @@