feat: init
This commit is contained in:
parent
b15f09c27c
commit
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 },
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user