mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-23 23:39:47 +08:00
feat(projects): 引入mockjs
This commit is contained in:
16
mock/api/auth.ts
Normal file
16
mock/api/auth.ts
Normal file
@ -0,0 +1,16 @@
|
||||
import type { MockMethod } from 'vite-plugin-mock';
|
||||
import type { BackendServiceResult } from '@/interface';
|
||||
|
||||
export default [
|
||||
{
|
||||
url: '/api/getUser',
|
||||
method: 'get',
|
||||
response: (): BackendServiceResult => {
|
||||
return {
|
||||
code: 200,
|
||||
message: 'ok',
|
||||
data: '测试mock数据'
|
||||
};
|
||||
}
|
||||
}
|
||||
] as MockMethod[];
|
Reference in New Issue
Block a user