You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
523 B
25 lines
523 B
import { MockMethod } from 'vite-plugin-mock';
|
|
import { resultSuccess } from '../_util';
|
|
|
|
const demoList = (() => {
|
|
const result: any[] = [];
|
|
for (let index = 0; index < 20; index++) {
|
|
result.push({
|
|
label: `选项${index}`,
|
|
value: `${index}`,
|
|
});
|
|
}
|
|
return result;
|
|
})();
|
|
|
|
export default [
|
|
{
|
|
url: '/api/select/getDemoOptions',
|
|
timeout: 4000,
|
|
method: 'get',
|
|
response: ({ query }) => {
|
|
console.log(query);
|
|
return resultSuccess(demoList);
|
|
},
|
|
},
|
|
] as MockMethod[];
|
|
|