From e63f9ce08023784daa13cfa0dabff1aafeec1cb6 Mon Sep 17 00:00:00 2001 From: iamkun Date: Fri, 31 May 2019 10:36:37 +0800 Subject: [PATCH] Chore: Update test api host --- examples/components/theme/loader/api.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/components/theme/loader/api.js b/examples/components/theme/loader/api.js index 9f31d39998..a3277b4ace 100644 --- a/examples/components/theme/loader/api.js +++ b/examples/components/theme/loader/api.js @@ -6,8 +6,7 @@ const { version } = Element; const hostList = { local: 'http://localhost:3008/', alpha: 'https://ssr.alpha.elenet.me/element-theme-server/', - production: 'https://ssr.ele.me/element-theme-server/', - productionEle: 'https://ssr.elenet.me/element-theme-server/' + production: 'https://ssr.ele.me/element-theme-server/' }; const host = hostList[process.env.FAAS_ENV] || hostList.production; @@ -17,7 +16,7 @@ export const getVars = () => { }; export const getTestEle = () => { - return get(`${hostList.productionEle}getVariable?version=${version}`); + return get(`${hostList.alpha}getVariable?version=${version}`); }; export const updateVars = (data, cb) => {