Commit f7061578 authored by 崔佳豪's avatar 崔佳豪

fix: 网关修改

parent 2a3d8c52
Pipeline #47661 passed with stages
in 2 minutes 28 seconds
...@@ -56,7 +56,7 @@ export const initGlobalConfig = () => { ...@@ -56,7 +56,7 @@ export const initGlobalConfig = () => {
const hasGateWay = !res || !res.data ? false : _.isString(res.data) ? JSON.parse(res.data) : typeof res.data === 'boolean' ? res.data : false; const hasGateWay = !res || !res.data ? false : _.isString(res.data) ? JSON.parse(res.data) : typeof res.data === 'boolean' ? res.data : false;
return { return {
hasGateWay, hasGateWay,
apiGatewayDomain: `${window.location.origin}/PandaCore/GateWay`, apiGatewayDomain: `${window.location.origin}${hasGateWay ? '/PandaCore/GateWay' : ''}`,
}; };
}) })
.then(gateWayConfig => { .then(gateWayConfig => {
......
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