diff --git a/mock/echarts.ts b/mock/echarts.ts index fbf2ffd6d..f07e6c3ee 100644 --- a/mock/echarts.ts +++ b/mock/echarts.ts @@ -1,8 +1,8 @@ import { MockMethod } from "vite-plugin-mock"; // http://mockjs.com/examples.html#Object -const echartsList = (): any => { - const result: any[] = []; +const echartsList = () => { + const result = []; for (let index = 0; index < 200; index++) { result.push(["@date", Math.floor(Math.random() * 300)]); } diff --git a/mock/map.ts b/mock/map.ts index 942231a91..14f072af5 100644 --- a/mock/map.ts +++ b/mock/map.ts @@ -1,8 +1,16 @@ 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 = (): any => { - const result: any[] = []; +const mapList = (): Array => { + const result: Array = []; for (let index = 0; index < 200; index++) { result.push({ plateNumber: "豫A@natural(11111, 99999)@character('upper')", diff --git a/src/components/ReInfo/index.vue b/src/components/ReInfo/index.vue index 3ba657d29..b52e48bc4 100644 --- a/src/components/ReInfo/index.vue +++ b/src/components/ReInfo/index.vue @@ -1,4 +1,5 @@