mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-06 00:18:51 +08:00
24 lines
459 B
TypeScript
24 lines
459 B
TypeScript
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[];
|