diff --git a/jjb.config.js b/jjb.config.js index fa188c3..bd71b85 100644 --- a/jjb.config.js +++ b/jjb.config.js @@ -9,8 +9,8 @@ module.exports = { // 应用后端分支名称,部署上线需要 javaGitBranch: "", // 接口服务地址(注册/填报开放接口需对接网关,本地后端可通过 sessionStorage.API_HOST 覆盖) - //API_HOST: "https://gbs-gateway.qhdsafety.com", - API_HOST: "http://192.168.0.103", + API_HOST: "https://gbs-gateway.qhdsafety.com", + //API_HOST: "http://192.168.0.103", }, production: { // 应用后端分支名称,部署上线需要 diff --git a/src/pages/Container/Driver/index.js b/src/pages/Container/Driver/index.js index 6802368..e194503 100644 --- a/src/pages/Container/Driver/index.js +++ b/src/pages/Container/Driver/index.js @@ -77,6 +77,9 @@ const Driver = (props) => { } actionResultRef.current = await queryDriverConfig(); + if(actionResultRef.current?.data === 1){ + window.location.href= 'https://gbs-gateway.qhdsafety.com/'; + } } catch (error) { setPageError(error?.message || "页面加载失败,请稍后重试");