| | |
| | | return $clue |
| | | .get(`clue/question/fetch?clueId=${clueId}`) |
| | | .then((res) => { |
| | | return getClueQuestionList(res); |
| | | return getClueQuestionList(res.data); |
| | | }); |
| | | }, |
| | | |
| | |
| | | files.forEach((e) => { |
| | | formData.append('images', e); |
| | | }); |
| | | return $clue.post(`clue/question/upload`, formData); |
| | | return $clue.post(`clue/question/upload`, formData).then((res) => res.data); |
| | | }, |
| | | |
| | | deleteQuestion(questionId) { |
| | | return $clue.delete(`clue/question`, { params: { questionId } }).then((res) => res.data); |
| | | }, |
| | | |
| | | uploadQuestionUrl() { |
| | |
| | | * @returns |
| | | */ |
| | | pushQuestion(questionIdList) { |
| | | return $clue.post(`clue/question/push`, questionIdList); |
| | | return $clue.post(`clue/question/push`, questionIdList).then((res) => res.data); |
| | | } |
| | | }; |