From 75afd44e7ae1afe2f50660ead27541057316b156 Mon Sep 17 00:00:00 2001
From: xiaoxian521 <1923740402@qq.com>
Date: Tue, 21 Sep 2021 02:16:46 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=A0=87=E7=AD=BE?=
=?UTF-8?q?=E9=A1=B5=E6=9C=AA=E6=A0=B9=E6=8D=AE=E6=9D=83=E9=99=90=E6=98=BE?=
=?UTF-8?q?=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/mock.ts | 4 +-
src/api/routes.ts | 2 +-
src/api/user.ts | 6 +--
src/layout/components/tag/index.vue | 11 +++--
src/main.ts | 1 +
src/router/index.ts | 68 +++++++++++++++++------------
src/store/modules/permission.ts | 3 +-
src/views/welcome.vue | 58 ++++++++++++++----------
8 files changed, 91 insertions(+), 62 deletions(-)
diff --git a/src/api/mock.ts b/src/api/mock.ts
index 0e1a17c0d..9701c797a 100644
--- a/src/api/mock.ts
+++ b/src/api/mock.ts
@@ -1,11 +1,11 @@
import { http } from "../utils/http";
// 地图数据
-export const mapJson = (data?: object): any => {
+export const mapJson = (data?: object) => {
return http.request("get", "/getMapInfo", data);
};
// echarts数据
-export const echartsJson = (data?: object): any => {
+export const echartsJson = (data?: object) => {
return http.request("get", "/getEchartsInfo", data);
};
diff --git a/src/api/routes.ts b/src/api/routes.ts
index 099ab2e86..bbd3527bf 100644
--- a/src/api/routes.ts
+++ b/src/api/routes.ts
@@ -1,5 +1,5 @@
import { http } from "../utils/http";
-export const getAsyncRoutes = (data?: object): any => {
+export const getAsyncRoutes = (data?: object) => {
return http.request("get", "/getAsyncRoutes", data);
};
diff --git a/src/api/user.ts b/src/api/user.ts
index 195670dac..402902d8a 100644
--- a/src/api/user.ts
+++ b/src/api/user.ts
@@ -1,16 +1,16 @@
import { http } from "../utils/http";
// 获取验证码
-export const getVerify = (): any => {
+export const getVerify = () => {
return http.request("get", "/captcha");
};
// 登录
-export const getLogin = (data: object): any => {
+export const getLogin = (data: object) => {
return http.request("post", "/login", data);
};
// 注册
-export const getRegist = (data: object): any => {
+export const getRegist = (data: object) => {
return http.request("post", "/register", data);
};
diff --git a/src/layout/components/tag/index.vue b/src/layout/components/tag/index.vue
index 3090208fe..7dbdb3ea3 100644
--- a/src/layout/components/tag/index.vue
+++ b/src/layout/components/tag/index.vue
@@ -45,7 +45,7 @@
:key="key"
style="display: flex; align-items: center"
>
-
+
{{ item.text }}
@@ -112,6 +112,7 @@ let refreshButton = "refresh-button";
let routerArrays: Array