提交 51a6492c authored 作者: GOD_ZYX's avatar GOD_ZYX

富文本内容 提交 需要 不能使用 &= 这种方式

上级 e493231e
No preview for this file type
......@@ -2,4 +2,4 @@
<script src="/static/compatible/console-polyfill.js"></script>
<script src="/static/compatible/html5shiv.min.js"></script>
<script src="/static/compatible/respond.min.js"></script>
<![endif]--><script type="text/javascript" src="/resources/manifest.737764df.js"></script><script type="text/javascript" src="/resources/vendor.f74fc2d9.js"></script><script type="text/javascript" src="/resources/app.19926f6a.js"></script></body></html>
\ No newline at end of file
<![endif]--><script type="text/javascript" src="/resources/manifest.737764df.js"></script><script type="text/javascript" src="/resources/vendor.f74fc2d9.js"></script><script type="text/javascript" src="/resources/app.520616c5.js"></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -58,7 +58,7 @@ export default class ChapterAPI extends BaseAPI {
/**
* 提交课程 作业或问题
*/
updateHomework = (obj = {}) => this.post('/tenant/v2/education/homeworks', obj, { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } })
updateHomework = (obj = {}) => this.post('/tenant/v2/education/homeworks', obj, { headers: { 'Content-Type': 'multipart/form-data' } })
/**
* 获取对应 大作业 回答
* @param {[string]} sid
......@@ -70,5 +70,5 @@ export default class ChapterAPI extends BaseAPI {
* @param {[string]} sid
* @param {[string]} cid
*/
updateCourseHomework = (sid, cid, obj = {}) => this.post(`/tenant/v2/education/courses/${sid}/${cid}/essay`, obj, { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } })
updateCourseHomework = (sid, cid, obj = {}) => this.post(`/tenant/v2/education/courses/${sid}/${cid}/essay`, obj, { headers: { 'Content-Type': 'multipart/form-data' } })
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论