style: format style

This commit is contained in:
xiaoxian521
2021-07-20 17:16:42 +08:00
parent a5172c9476
commit 9bb4f34707
9 changed files with 105 additions and 99 deletions

View File

@@ -1,23 +1,23 @@
import { MockMethod } from 'vite-plugin-mock'
import { MockMethod } from "vite-plugin-mock";
// http://mockjs.com/examples.html#Object
const echartsList = (): any => {
const result: any[] = []
const result: any[] = [];
for (let index = 0; index < 200; index++) {
result.push(['@date', Math.floor(Math.random() * 300)])
result.push(["@date", Math.floor(Math.random() * 300)]);
}
return result
}
return result;
};
export default [
{
url: '/getEchartsInfo',
method: 'get',
url: "/getEchartsInfo",
method: "get",
response: () => {
return {
code: 0,
info: echartsList()
}
},
};
}
}
] as MockMethod[]
] as MockMethod[];