Commit f32af685 authored by Davve's avatar Davve

修复问题

parent b973f2e7
......@@ -100,6 +100,7 @@ class ReplyCreate(APIView):
'replied_id': request.POST.get("replied_id", None),
'topic_id': request.POST.get("topic_id", None),
'content': request.POST.get('content'),
'replied_user_id': request.POST.get('replied_user_id', None)
}
try:
data = self.rpc['venus/sun/topic/reply/edit'](id=None, data=data).unwrap()
......
......@@ -449,11 +449,6 @@
this.$refs.postForm.validate(valid => {
if (valid) {
this.loading = true;
if (this.city.length == 0){
this.$message.error('城市必填')
this.loading = false;
return false;
}
this.postForm.city = JSON.stringify(this.city);
this.postForm.pick_group = JSON.stringify(this.pick_group);
......
......@@ -695,12 +695,14 @@
user_id: '',
content: '',
be_replied_id: '',
replied_user_id: ''
}
},
reply(row) {
this.resetTemp()
if (row){
// this.temp.be_replied_id = row.be_reply_user.id
this.temp.replied_user_id = row.reply_user.id
this.temp.replied_id = row.id
}
this.dialogStatus = 'create'
......
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