-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.js
55 lines (51 loc) · 979 Bytes
/
test.js
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
45
46
47
48
49
50
51
52
53
54
55
const a = axios.create({
baseUrl: "http//localhost:3000/api",
timeout: 200,
method: "post",
data: {
userId: "2017211018",
usename: "黄震",
teacherClass: "SJ00201A2031780001"
},
headers: {
token: "xxx"
}
})
const options = {
state: "1",
pageSize: "9"
}
a.request({
...options,
url: "/student/Compnents"
})
const b = {
baseUrl: "http//localhost:3000/api",
timeout: 200,
method: "post",
data: {
userId: "2017211018",
usename: "黄震",
teacherClass: "SJ00201A2031780001"
},
headers: {
token: "xxx"
},
state: "1",
pageSize: "9",
url: "/student/Compnents"
}
const c = {
baseUrl: "http//localhost:3000/api",
timeout: 200,
method: "post",
data: {
teacherClass: "SJ00201A2031780001",
pageSize: "9",
state: "1",
},
headers: {
token: "xxx"
},
url: "/student/Compnents"
}