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

fix: 云平台刷新导致获取网关配置被转发的问题

parent bdbeb1d8
Pipeline #47047 passed with stages
in 2 minutes 33 seconds
......@@ -48,7 +48,9 @@ export const initGlobalConfig = () => {
// eslint-disable-next-line react-hooks/rules-of-hooks
let client = params.getParams('client') || Cookies.get('city')
client = client && client !== 'undefined' ? client : 'city';
appService.getWateWayConfig().then(res => {
appService.getWateWayConfig({
ignoreSite: true,
}).then(res => {
const hasGateWay =
!res || !res.data ? false : isString(res.data) ? JSON.parse(res.data) : typeof res.data === 'boolean' ? res.data : false;
// if (res.code === 0 && res.data === 'true') {
......
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