初始化
This commit is contained in:
23
auts_new.client/mock/index.ts
Normal file
23
auts_new.client/mock/index.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import Mock from 'mockjs';
|
||||
import { MockMethod } from 'vite-plugin-mock';
|
||||
|
||||
export default [
|
||||
{
|
||||
url: '/api/detail-basic',
|
||||
method: 'get',
|
||||
response: () => ({
|
||||
code: 0,
|
||||
data: {
|
||||
...Mock.mock({
|
||||
name: 'td_20023747',
|
||||
loginType: 'Web',
|
||||
currentRole: 'Admin',
|
||||
rightsList: '通用权限',
|
||||
userStatus: '启用',
|
||||
language: '简体中文',
|
||||
timeZone: '(GMT+08:00)中国时区—北京(Asia/Beijing)',
|
||||
}),
|
||||
},
|
||||
}),
|
||||
},
|
||||
] as MockMethod[];
|
||||
Reference in New Issue
Block a user