style ESline规则更新

This commit is contained in:
xxm
2022-10-03 19:26:05 +08:00
parent 488776ca27
commit be13e7b425
732 changed files with 15318 additions and 17298 deletions

View File

@@ -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[]