mirror of https://github.com/ElemeFE/element
Chore: Update test api host (#15807)
parent
1b8e3d823b
commit
a3082a4178
|
@ -6,8 +6,7 @@ const { version } = Element;
|
||||||
const hostList = {
|
const hostList = {
|
||||||
local: 'http://localhost:3008/',
|
local: 'http://localhost:3008/',
|
||||||
alpha: 'https://ssr.alpha.elenet.me/element-theme-server/',
|
alpha: 'https://ssr.alpha.elenet.me/element-theme-server/',
|
||||||
production: 'https://ssr.ele.me/element-theme-server/',
|
production: 'https://ssr.ele.me/element-theme-server/'
|
||||||
productionEle: 'https://ssr.elenet.me/element-theme-server/'
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const host = hostList[process.env.FAAS_ENV] || hostList.production;
|
const host = hostList[process.env.FAAS_ENV] || hostList.production;
|
||||||
|
@ -17,7 +16,7 @@ export const getVars = () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
export const getTestEle = () => {
|
export const getTestEle = () => {
|
||||||
return get(`${hostList.productionEle}getVariable?version=${version}`);
|
return get(`${hostList.alpha}getVariable?version=${version}`);
|
||||||
};
|
};
|
||||||
|
|
||||||
export const updateVars = (data, cb) => {
|
export const updateVars = (data, cb) => {
|
||||||
|
|
Loading…
Reference in New Issue