From 7013e57d1e1b2ea6e8fa3cda26e8a877081b5f31 Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Tue, 19 Oct 2021 18:58:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8F=B3=E9=94=AE=E8=8F=9C=E5=8D=95z-in?= =?UTF-8?q?dex=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mock/echarts.ts | 4 ++-- mock/map.ts | 12 ++++++++++-- src/components/ReInfo/index.vue | 3 ++- src/layout/components/tag/index.vue | 1 - src/style/sidebar.scss | 2 +- vite.config.ts | 2 +- 6 files changed, 16 insertions(+), 8 deletions(-) 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 @@