maxiaoxiao 9 сар өмнө
parent
commit
30b391aefc

+ 7 - 1
src/components/Combinations/toolBar/toolBar.vue

@@ -242,7 +242,13 @@ export default {
     },
     getXzqTreeData() {
       GetXzqhTree().then((res) => {
-        this.xzqTreeData = res.data;
+        if (res.data.length > 0) {
+          const list = res.data[0].children.filter((item) => {
+            return item.label == "三亚市";
+          });
+          if (list.length > 0) this.xzqTreeData = list[0];
+          else this.xzqTreeData = res.data;
+        }
       });
     },
     toggleVisibility() {