🎈 perf: 优化代码
This commit is contained in:
parent
33b6028716
commit
608d999e70
|
@ -23,6 +23,12 @@ if (process.env.NODE_ENV == 'production') {
|
||||||
if (process.env.NODE_ENV == 'development') {
|
if (process.env.NODE_ENV == 'development') {
|
||||||
window.unifiedUrl = 'http://192.168.7.200:8888/#/login';
|
window.unifiedUrl = 'http://192.168.7.200:8888/#/login';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const ApiUrl =
|
||||||
|
process.env.NODE_ENV === 'development'
|
||||||
|
? 'http://192.168.7.127:8000'
|
||||||
|
: window.unifiedUrl + 'api';
|
||||||
|
|
||||||
const upload = (method, url, params, responseType) => {
|
const upload = (method, url, params, responseType) => {
|
||||||
let obj = {
|
let obj = {
|
||||||
method: method,
|
method: method,
|
||||||
|
@ -714,10 +720,6 @@ export const postLoginStandby = (data) => {
|
||||||
|
|
||||||
//同统一登录获取菜单
|
//同统一登录获取菜单
|
||||||
export const getMenus = () => {
|
export const getMenus = () => {
|
||||||
const ApiUrl =
|
|
||||||
process.env.NODE_ENV === 'development'
|
|
||||||
? 'http://192.168.7.127:8000'
|
|
||||||
: window.unifiedUrl + 'api';
|
|
||||||
return req('unified', `${ApiUrl}/v1/menu/tree/marketing`);
|
return req('unified', `${ApiUrl}/v1/menu/tree/marketing`);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue