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: "请选择发布范围",