Browse Source

加强判断 以及修改发布链接地址

old
jianjun 4 years ago
parent
commit
1802a7562a
  1. 6
      src/views/form/publish/index.vue

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

Loading…
Cancel
Save