From 3d987bdfdf8188f1be24dddff9294091a1c028cf Mon Sep 17 00:00:00 2001 From: tangjie <122778500@qq.com> Date: Thu, 13 Aug 2026 14:00:23 +0800 Subject: [PATCH] fix --- jjb.config.js | 4 ++-- src/pages/Container/Driver/index.js | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) 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 || "页面加载失败,请稍后重试");