fix: 修复标签页未根据权限显示

This commit is contained in:
xiaoxian521
2021-09-21 02:16:46 +08:00
parent feb1498d29
commit 75afd44e7a
8 changed files with 91 additions and 62 deletions

View File

@@ -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);
};

View File

@@ -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);
};

View File

@@ -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);
};