first commit
This commit is contained in:
42
mock/crud.js
Normal file
42
mock/crud.js
Normal file
@@ -0,0 +1,42 @@
|
||||
export default [{
|
||||
url: "/crud/list",
|
||||
method: "get",
|
||||
response: () => {
|
||||
return {
|
||||
data: {
|
||||
total: 10,
|
||||
data: Array(10).fill({
|
||||
name: 'small',
|
||||
sex: '男'
|
||||
}, {
|
||||
name: 'small',
|
||||
sex: '男'
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
url: "/crud",
|
||||
method: "post",
|
||||
response: () => {
|
||||
return {
|
||||
data: {}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
url: "/crud",
|
||||
method: "put",
|
||||
response: () => {
|
||||
return {
|
||||
data: {}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
url: "/crud",
|
||||
method: "delete",
|
||||
response: () => {
|
||||
return {
|
||||
data: {}
|
||||
}
|
||||
}
|
||||
}]
|
||||
Reference in New Issue
Block a user