Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
1a1cd5d8d3 |
7
mock/api.ts
Normal file
7
mock/api.ts
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
export default {
|
||||||
|
// 支持值为 Object 和 Array
|
||||||
|
'GET /api/users': { users: [1, 2] },
|
||||||
|
|
||||||
|
// GET 可忽略
|
||||||
|
'/api/users/1': { id: 1 },
|
||||||
|
}
|
Reference in New Issue
Block a user