mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-15 14:03:36 +08:00
style: format code for all
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
|
||||
import { http } from "../utils/http"
|
||||
import { http } from "../utils/http";
|
||||
|
||||
// 地图数据
|
||||
export const mapJson = (data?: object): any => {
|
||||
return http.request("get", "/getMapInfo", data)
|
||||
}
|
||||
return http.request("get", "/getMapInfo", data);
|
||||
};
|
||||
|
||||
// echarts数据
|
||||
export const echartsJson = (data?: object): any => {
|
||||
return http.request("get", "/getEchartsInfo", data)
|
||||
}
|
||||
return http.request("get", "/getEchartsInfo", data);
|
||||
};
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
import { http } from "../utils/http"
|
||||
import { http } from "../utils/http";
|
||||
|
||||
// 获取验证码
|
||||
export const getVerify = (): any => {
|
||||
return http.request("get", "/captcha")
|
||||
}
|
||||
return http.request("get", "/captcha");
|
||||
};
|
||||
|
||||
// 登录
|
||||
export const getLogin = (data: object): any => {
|
||||
return http.request("post", "/login", data)
|
||||
}
|
||||
return http.request("post", "/login", data);
|
||||
};
|
||||
|
||||
// 注册
|
||||
export const getRegist = (data: object): any => {
|
||||
return http.request("post", "/register", data)
|
||||
}
|
||||
return http.request("post", "/register", data);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user