|
|
@@ -176,7 +176,7 @@ import { difficultyClass } from "@/data/questionDifficulty";
|
|
|
export default {
|
|
|
props: {
|
|
|
courseId: {
|
|
|
- type: String
|
|
|
+ type: Number
|
|
|
},
|
|
|
assignType: {
|
|
|
type: Number
|
|
|
@@ -279,16 +279,10 @@ export default {
|
|
|
this.parseParams();
|
|
|
if (this.assignType === 1) {
|
|
|
// 文档作业
|
|
|
- this.myPromise = postDocAssignment(
|
|
|
- this.params,
|
|
|
- parseInt(this.courseId)
|
|
|
- );
|
|
|
+ this.myPromise = postDocAssignment(this.params, this.courseId);
|
|
|
} else {
|
|
|
// 代码作业
|
|
|
- this.myPromise = postCodeAssignment(
|
|
|
- this.params,
|
|
|
- parseInt(this.courseId)
|
|
|
- );
|
|
|
+ this.myPromise = postCodeAssignment(this.params, this.courseId);
|
|
|
}
|
|
|
this.myPromise.then(res => {
|
|
|
//创建成功
|