From 503aa881cdad77bd1f1e4fb22b456d3ef3623893 Mon Sep 17 00:00:00 2001 From: laozt <2721205210@qq.com> Date: Wed, 25 Oct 2023 10:14:48 +0800 Subject: [PATCH] / --- src/views/components/dialog/index.vue | 6 +++--- src/views/yingji/enterprise.vue | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/components/dialog/index.vue b/src/views/components/dialog/index.vue index 97fd1ca..435291a 100644 --- a/src/views/components/dialog/index.vue +++ b/src/views/components/dialog/index.vue @@ -397,7 +397,7 @@ export default { array[ind] = dictzh[item]; }); // console.log(array.join(",")); - return array.join(","); + return array.join(",") || "/"; }, }, methods: { @@ -579,8 +579,8 @@ export default { this.dialogVisible = true; // let data = await this.$api.yingji.tree(); // this.district = data.data; - let treeData = JSON.parse(localStorage.getItem("TREE_DATA")) - this.district = treeData + let treeData = JSON.parse(localStorage.getItem("TREE_DATA")); + this.district = treeData; this.commentData(this.district, dept); this.bPlanEnterprise(); this.filtrate(); diff --git a/src/views/yingji/enterprise.vue b/src/views/yingji/enterprise.vue index 73414ba..cadd4e5 100644 --- a/src/views/yingji/enterprise.vue +++ b/src/views/yingji/enterprise.vue @@ -316,7 +316,7 @@ export default { array[ind] = dictzh[item]; }); // console.log(array.join(",")); - return array.join(","); + return array.join(",") || "/"; }, }, methods: {