Chore: update theme base api (#16607)

pull/17735/head^2
iamkun 2019-07-18 13:32:30 +08:00 committed by GitHub
parent 792830a025
commit 11bf7172a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -5,8 +5,8 @@ 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://element-api.ar.elenet.me/element/theme/',
production: 'https://ssr.ele.me/element-theme-server/' production: 'https://element-api.ele.me/element/theme/'
}; };
const host = hostList[process.env.FAAS_ENV] || hostList.production; const host = hostList[process.env.FAAS_ENV] || hostList.production;
@ -16,7 +16,7 @@ export const getVars = () => {
}; };
export const getTestEle = () => { export const getTestEle = () => {
return get(`${hostList.alpha}getVariable?version=${version}`); return get(`${hostList.alpha}getVariable`);
}; };
export const updateVars = (data, cb) => { export const updateVars = (data, cb) => {