Commit e3ce2b0e by yanju

修复项目发布

parent 04ed10f4
...@@ -203,7 +203,7 @@ export default { ...@@ -203,7 +203,7 @@ export default {
this.$refs.language.$refs.select.value = this.response.data.devLang; this.$refs.language.$refs.select.value = this.response.data.devLang;
this.docLink = this.response.data.docLink; this.docLink = this.response.data.docLink;
this.homeLink = this.response.data.homeLink; this.homeLink = this.response.data.homeLink;
this.content = this.response.data.devLang;//内容 this.content = this.response.data.content;//内容
this.license = this.response.data.license; this.license = this.response.data.license;
this.$refs.license.$refs.select.value = this.response.data.license; this.$refs.license.$refs.select.value = this.response.data.license;
this.projectDescription = this.response.data.projectDescription; this.projectDescription = this.response.data.projectDescription;
...@@ -396,18 +396,13 @@ export default { ...@@ -396,18 +396,13 @@ export default {
type: 'warning', type: 'warning',
message: '请输入项目详情' message: '请输入项目详情'
}) })
}else if (this.imgSrc === '') {
this.$message({
type: 'warning',
message: '请上传项目封面'
})
} else { } else {
return true return true
} }
} else { } else {
if (this.name !== '' && this.license !== '' && this.language !== '' if (this.name !== '' && this.license !== '' && this.language !== ''
&& this.addressLink !== '' && this.projectClass !== '' && this.projectDescription !== '' && this.addressLink !== '' && this.projectClass !== '' && this.projectDescription !== ''
&& this.value !== '' && this.imgSrc !== '' && this.value !== ''
) { ) {
return true return true
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment