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,18 +1,18 @@
import { MockMethod } from 'vite-plugin-mock';
import { resultSuccess } from '../_util';
import { MockMethod } from 'vite-plugin-mock'
import { resultSuccess } from '../_util'
const demoList = (keyword, count = 20) => {
const result = {
list: [] as any[],
};
}
for (let index = 0; index < count; index++) {
result.list.push({
name: `${keyword ?? ''}选项${index}`,
id: `${index}`,
});
})
}
return result;
};
return result
}
export default [
{
@@ -20,9 +20,9 @@ export default [
timeout: 1000,
method: 'get',
response: ({ query }) => {
const { keyword, count } = query;
console.log(keyword);
return resultSuccess(demoList(keyword, count));
const { keyword, count } = query
console.log(keyword)
return resultSuccess(demoList(keyword, count))
},
},
] as MockMethod[];
] as MockMethod[]