原型设计系统
This commit is contained in:
37
mock/modules.ts
Normal file
37
mock/modules.ts
Normal file
@@ -0,0 +1,37 @@
|
||||
import { MockMethod } from 'vite-plugin-mock'
|
||||
|
||||
export default [
|
||||
{
|
||||
url: '/api/modules',
|
||||
method: 'get',
|
||||
response: () => {
|
||||
return {
|
||||
code: 0,
|
||||
message: 'ok',
|
||||
data: [
|
||||
{
|
||||
id: 1,
|
||||
title: 'Personnel Evaluation',
|
||||
description: 'Evaluate employee performance and manage reviews.',
|
||||
icon: 'User',
|
||||
path: '/personnel'
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: 'Training',
|
||||
description: 'Manage training programs and track employee progress.',
|
||||
icon: 'School',
|
||||
path: '/training'
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: 'Data Dashboard',
|
||||
description: 'View key performance indicators and analytics.',
|
||||
icon: 'DataLine',
|
||||
path: '/data-dashboard'
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
] as MockMethod[]
|
||||
Reference in New Issue
Block a user