Commit bf6ec01e authored by Davve's avatar Davve

修改明星

parent 61cc17ab
......@@ -51,7 +51,6 @@ class CelebrityUpdateOrCreate(APIView):
return {'data': data}
def post(self, request):
print(request.POST, '------------')
id = request.POST.get('id', '')
gender = request.POST.get('gender')
group_ids = list(set(map(lambda x: x.split(":")[0], json.loads(request.POST.get('groups', '[]')))))
......
......@@ -232,7 +232,12 @@
UserDetail(id).then(response => {
let rep = response.data.data
this.postForm = response.data.data
this.city = response.data.data.city.id + ':' + response.data.data.city.name
if (response.data.data.city.id && response.data.data.city.name){
this.city = response.data.data.city.id + ':' + response.data.data.city.name
}else{
this.city = ''
}
for (let i = 0;i < rep.tag_list.length; i++){
this.tags.push(rep.tag_list[i].id + ':' + rep.tag_list[i].name)
}
......
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