mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-06 00:18:51 +08:00
30 lines
609 B
TypeScript
30 lines
609 B
TypeScript
import { MockMethod } from "vite-plugin-mock";
|
|
|
|
// http://mockjs.com/examples.html#Object
|
|
const mapList = (): any => {
|
|
const result: any[] = [];
|
|
for (let index = 0; index < 200; index++) {
|
|
result.push({
|
|
plateNumber: "豫A@natural(11111, 99999)@character('upper')",
|
|
driver: "@cname()",
|
|
"orientation|1-360": 100,
|
|
"lng|113-114.1-10": 1,
|
|
"lat|34-35.1-10": 1,
|
|
});
|
|
}
|
|
return result;
|
|
};
|
|
|
|
export default [
|
|
{
|
|
url: "/getMapInfo",
|
|
method: "get",
|
|
response: () => {
|
|
return {
|
|
code: 0,
|
|
info: mapList(),
|
|
};
|
|
},
|
|
},
|
|
] as MockMethod[];
|