From 1802a7562ac2da54f014d8673f3ce875c74c5370 Mon Sep 17 00:00:00 2001 From: jianjun Date: Fri, 24 Sep 2021 14:01:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=BC=BA=E5=88=A4=E6=96=AD=20?= =?UTF-8?q?=E4=BB=A5=E5=8F=8A=E4=BF=AE=E6=94=B9=E5=8F=91=E5=B8=83=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/form/publish/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/form/publish/index.vue b/src/views/form/publish/index.vue index 25d276d..aa3442b 100644 --- a/src/views/form/publish/index.vue +++ b/src/views/form/publish/index.vue @@ -134,7 +134,7 @@ export default { mounted () { this.projectKey = this.$route.query.key let url = window.location.protocol + '//' + window.location.host - this.writeLink = `${url}/s/${this.projectKey}` + this.writeLink = `${url}/questionnaire/s/${this.projectKey}` this.getProjectStatus() }, @@ -152,7 +152,7 @@ export default { agencyId: customerId } this.$api.post(`/data/aggregator/org/agencytree`, params).then((res) => { - this.data = res.data + this.data = res.data ||[] }) }, @@ -207,7 +207,7 @@ export default { }, publishProject () { this.resolveAgency() - if (this.selAgencyList.length === 0) { + if (this.data.length >0 && this.selAgencyList.length === 0) { this.$message( { message: "请选择发布范围",