diff --git a/src/api/indexVote.js b/src/api/indexVote.js index 9cacddc1..0f91f1bb 100644 --- a/src/api/indexVote.js +++ b/src/api/indexVote.js @@ -82,7 +82,7 @@ export const updateStemMessage = (obj) => http.post('/vote/updateStemMessage', o //上传组件 export const fileUp = (obj) => http.post('/file/upload', obj, qs.stringify({ obj })); //根据题干ID获取投票任务 -export const queryVoteDetailById = (obj) => http.post('/vote/queryVoteDetailById', obj) +export const queryVoteDetailById = (voteID) => http.post(`/vote/queryVoteDetailById?voteId=${voteID}`) // 测试方法 // import * as api from '../../api/index' diff --git a/src/components/vote/AddVote.vue b/src/components/vote/AddVote.vue index 5aa04497..e49bb756 100644 --- a/src/components/vote/AddVote.vue +++ b/src/components/vote/AddVote.vue @@ -1,83 +1,54 @@