Commit 63eeca61 authored by Davve's avatar Davve

增加发帖人限制

parent 82048475
......@@ -485,6 +485,12 @@
return false
}
if (!this.user){
this.$message.error('发帖人必填')
this.loading = false
return false
}
this.postForm.tags = JSON.stringify(this.tags)
this.postForm.user = this.user;
this.postForm.star = this.star;
......@@ -501,7 +507,7 @@
duration: 2000
})
setTimeout(() => {
this.$router.go(0)
this.$router.push('/topic/list')
}, 1000)
}).catch(err => {
......
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