Commit 7da1fe0d authored by 崔佳豪's avatar 崔佳豪

perf: getConfig接口替换为netcor接口

parent 030e497e
Pipeline #48713 skipped with stages
...@@ -12,7 +12,7 @@ const transformGateWay = url => { ...@@ -12,7 +12,7 @@ const transformGateWay = url => {
export const API = { export const API = {
AUTHORIZATION_TOKEN: '/PandaCore/Identity/AuthorizationToken', // 授权验证,不需要走网关加前缀 AUTHORIZATION_TOKEN: '/PandaCore/Identity/AuthorizationToken', // 授权验证,不需要走网关加前缀
GET_GATEWAY_CONFIG: '/PandaOMS/OMS/HostManager/GetGateWay', GET_GATEWAY_CONFIG: '/PandaOMS/OMS/HostManager/GetGateWay',
GET_CONFIG: '/CityInterface/rest/services.svc/GetConfig', GET_CONFIG: '/PandaOMS/OMS/WebSite/GetConfig',
GENERATE_TOKEN: '/cityinterface/rest/services.svc/generatetoken', GENERATE_TOKEN: '/cityinterface/rest/services.svc/generatetoken',
GENERATE_GATEWAT_TOKEN: '/PandaCore/GCK/Basis/GenerateToken', GENERATE_GATEWAT_TOKEN: '/PandaCore/GCK/Basis/GenerateToken',
GENERATE_IOT_TOKEN: 'cityinterface/rest/services.svc/generateGCKToken', GENERATE_IOT_TOKEN: 'cityinterface/rest/services.svc/generateGCKToken',
......
...@@ -58,7 +58,7 @@ export const initGlobalConfig = () => { ...@@ -58,7 +58,7 @@ export const initGlobalConfig = () => {
}) })
.then(res => { .then(res => {
if (res) { if (res) {
const data = res; const { data } = res;
if (!data.client) { if (!data.client) {
data.client = client; data.client = client;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment