index.js
913 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import Mock from "mockjs"
Mock.mock(
"/api_html/common/paper/paperShareCount", {
info: "success",
status: 0,
data: {
myCount: 24,
grade: 30
}
}
)
Mock.mock(
"/api_html/common/paper/upload", {
info: "success",
status: 0,
data: {
"name": "@cname",
"id|+1": 11,
"questionList": [
{
"examQuestionId|+1": 0,
"questionId|+1": 1,
"questionTitle": "@cname",
"questionType|1-4": 1,
"score|1-2": 1,
"partScore|0.5-1": 0.5,
"answerOptions": "A,B,C,D",
"correctAnswer|1": ["A", "B", "C", "D"],
"subQuestions": [
{
"questionType|1-4": 1,
"score": 1,
"partScore": 0,
"selectNum": 4,
"answerOptions": "A,B,C,D",
"correctAnswer|1": ["A", "B", "C", "D"],
"screenshot": "xxxx",
}
]
}
]
}
}
)