diff --git a/public/react/src/modules/courses/poll/PollDetailTabThird.js b/public/react/src/modules/courses/poll/PollDetailTabThird.js
index dd2f5dea5..b0bc95cea 100644
--- a/public/react/src/modules/courses/poll/PollDetailTabThird.js
+++ b/public/react/src/modules/courses/poll/PollDetailTabThird.js
@@ -89,8 +89,8 @@ class PollDetailTabThird extends Component{
item.question.answers.map((index,k)=>{
return(
-
- {index.answer_text}
+
+ {index.answer_text}
{
index.answer_text=="其他" ? :""
}
@@ -109,8 +109,8 @@ class PollDetailTabThird extends Component{
item.question.answers.map((index,k)=>{
return(
-
- {index.answer_text}
+
+ {index.answer_text}
{
index.answer_text=="其他" ? :""
}
diff --git a/public/react/src/modules/courses/poll/PollInfo.js b/public/react/src/modules/courses/poll/PollInfo.js
index 5d3bd36c3..8429595c9 100644
--- a/public/react/src/modules/courses/poll/PollInfo.js
+++ b/public/react/src/modules/courses/poll/PollInfo.js
@@ -135,7 +135,7 @@ class PollInfo extends Component{
postAnswer=(q_id,a_id,text,key)=>{
let url=`/poll_questions/${q_id}/poll_votes.json`;
-
+ console.log(text);
axios.post(url,{
poll_answer_id:a_id,
vote_text:text
@@ -207,8 +207,9 @@ class PollInfo extends Component{
})
if(text!=undefined){
- url+="vote_text="+text;
- axios.post(url).then((result)=>{
+ axios.post((url),{
+ vote_text:text
+ }).then((result)=>{
if(result.status==200){
const answer=Object.assign({}, this.state.question_answered[key]);
answer.ques_status=result.data.poll_vote.question_status;
@@ -400,8 +401,9 @@ class PollInfo extends Component{
{
item.question.answers && item.question.answers.map((i,k)=>{
return(
-
- {i.answer_text}
+
+
+ {i.answer_text}
{
i.answer_text=="其他" ?
@@ -442,8 +444,9 @@ class PollInfo extends Component{
{
item.question.answers && item.question.answers.map((i,k)=>{
return(
-
- {i.answer_text}
+
+
+ {i.answer_text}
{
i.answer_text=="其他"?