mirror of
https://gitee.com/yiming_chang/vue-pure-admin.git
synced 2024-11-30 02:07:38 +08:00
6ef4cf9fb6
* refactor: permission * chore: update * chore: update * chore: update * chore: update * chore: update * chore: update * chore: update * chore: update * chore: update * fix: 修复`mix`混合模式导航在生产环境左侧菜单一定机率不显示的问题 * chore: update * chore: update * chore: update * chore: update * chore: update * chore: update * chore: update * chore: update
38 lines
782 B
TypeScript
38 lines
782 B
TypeScript
import { MockMethod } from "vite-plugin-mock";
|
|
|
|
type mapType = {
|
|
plateNumber: string;
|
|
driver: string;
|
|
"orientation|1-360": number;
|
|
"lng|113-114.1-10": number;
|
|
"lat|34-35.1-10": number;
|
|
};
|
|
|
|
// http://mockjs.com/examples.html#Object
|
|
const mapList = (): Array<mapType> => {
|
|
const result: Array<mapType> = [];
|
|
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 {
|
|
success: true,
|
|
data: mapList()
|
|
};
|
|
}
|
|
}
|
|
] as MockMethod[];
|