mirror of
https://gitee.com/bootx/dax-pay-ui.git
synced 2025-09-26 21:51:40 +00:00
style ESline规则更新
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
import { MockMethod } from 'vite-plugin-mock';
|
||||
import { Random } from 'mockjs';
|
||||
import { resultPageSuccess } from '../_util';
|
||||
import { MockMethod } from 'vite-plugin-mock'
|
||||
import { Random } from 'mockjs'
|
||||
import { resultPageSuccess } from '../_util'
|
||||
|
||||
function getRandomPics(count = 10): string[] {
|
||||
const arr: string[] = [];
|
||||
const arr: string[] = []
|
||||
for (let i = 0; i < count; i++) {
|
||||
arr.push(Random.image('800x600', Random.color(), Random.color(), Random.title()));
|
||||
arr.push(Random.image('800x600', Random.color(), Random.color(), Random.title()))
|
||||
}
|
||||
return arr;
|
||||
return arr
|
||||
}
|
||||
|
||||
const demoList = (() => {
|
||||
const result: any[] = [];
|
||||
const result: any[] = []
|
||||
for (let index = 0; index < 200; index++) {
|
||||
result.push({
|
||||
id: `${index}`,
|
||||
@@ -34,10 +34,10 @@ const demoList = (() => {
|
||||
time: `@time('HH:mm')`,
|
||||
'no|100000-10000000': 100000,
|
||||
'status|1': ['normal', 'enable', 'disable'],
|
||||
});
|
||||
})
|
||||
}
|
||||
return result;
|
||||
})();
|
||||
return result
|
||||
})()
|
||||
|
||||
export default [
|
||||
{
|
||||
@@ -45,8 +45,8 @@ export default [
|
||||
timeout: 100,
|
||||
method: 'get',
|
||||
response: ({ query }) => {
|
||||
const { page = 1, pageSize = 20 } = query;
|
||||
return resultPageSuccess(page, pageSize, demoList);
|
||||
const { page = 1, pageSize = 20 } = query
|
||||
return resultPageSuccess(page, pageSize, demoList)
|
||||
},
|
||||
},
|
||||
] as MockMethod[];
|
||||
] as MockMethod[]
|
||||
|
Reference in New Issue
Block a user