原型设计系统
This commit is contained in:
20
mock/index.ts
Normal file
20
mock/index.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { MockMethod } from 'vite-plugin-mock'
|
||||
|
||||
export default [
|
||||
{
|
||||
url: '/api/stats',
|
||||
method: 'get',
|
||||
response: () => {
|
||||
return {
|
||||
code: 0,
|
||||
message: 'ok',
|
||||
data: [
|
||||
{ label: 'Total Users', value: '1,234' },
|
||||
{ label: 'Active Projects', value: '56' },
|
||||
{ label: 'Design Assets', value: '892' },
|
||||
{ label: 'Pending Reviews', value: '12' }
|
||||
],
|
||||
}
|
||||
},
|
||||
},
|
||||
] as MockMethod[]
|
||||
Reference in New Issue
Block a user