fix: some bug

This commit is contained in:
xiaoxian521
2022-04-10 21:13:34 +08:00
parent 91df7349f4
commit f3f9c12edf
7 changed files with 10 additions and 38 deletions

View File

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