From 04f01cf5a63eb2360de8e8c591ea7e35b2a226c7 Mon Sep 17 00:00:00 2001 From: duzhichao <1098974448@qq.com> Date: Tue, 28 Jul 2026 19:02:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=8C=87=E7=82=B9=E9=A3=9E=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zlt-web/yingyan/.env.local | 2 +- zlt-web/yingyan/config/config.ts | 1 + zlt-web/yingyan/src/pages/user/Login/index.less | 11 +++++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/zlt-web/yingyan/.env.local b/zlt-web/yingyan/.env.local index b585fa3c..32ec0ca3 100644 --- a/zlt-web/yingyan/.env.local +++ b/zlt-web/yingyan/.env.local @@ -6,7 +6,7 @@ REACT_APP_AMAP_KEY=7df3685709e341daed76e877e417e5be # Cesium Ion Token -REACT_APP_CESIUM_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIzNDNmZDVhOC0xMDFjLTQ4YmUtYmQ1YS0zYjdjNTFjMzVlYjMiLCJpZCI6MjU5LCJpYXQiOjE3NzQ0MTY4MDN9.aymrLJz62c7X0uDN4EBrgR6wWDlkoUAhlwzs8e5Hb2U +REACT_APP_CESIUM_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI5NjhjNDBlMS02OTBiLTQ5OWMtYjk3Mi04NjdiM2I4N2E4NDYiLCJpZCI6MzYxMzMzLCJpYXQiOjE3NjM0NDIxOTh9.PxIgncOzYVrDY17SWVJWD7U-9A1Wnomac8GEdcAYOeM # ========== WebSocket服务配置 ========== diff --git a/zlt-web/yingyan/config/config.ts b/zlt-web/yingyan/config/config.ts index 18b3c8a2..38e351f2 100644 --- a/zlt-web/yingyan/config/config.ts +++ b/zlt-web/yingyan/config/config.ts @@ -39,6 +39,7 @@ export default { config.plugin('define').tap((definitions: any) => { Object.assign(definitions[0], { 'process.env.CESIUM_BASE_URL': JSON.stringify(isDev ? '/' : (APP_BASE.endsWith('/') ? APP_BASE : APP_BASE + '/')), + 'process.env.REACT_APP_CESIUM_TOKEN': JSON.stringify(process.env.REACT_APP_CESIUM_TOKEN || ''), }); return definitions; }); diff --git a/zlt-web/yingyan/src/pages/user/Login/index.less b/zlt-web/yingyan/src/pages/user/Login/index.less index a19f5cf5..896b9031 100644 --- a/zlt-web/yingyan/src/pages/user/Login/index.less +++ b/zlt-web/yingyan/src/pages/user/Login/index.less @@ -93,6 +93,17 @@ } } +// 覆盖浏览器自动填充的白色背景(含验证码输入框) +.login-form :global(.ant-input-affix-wrapper input:-webkit-autofill), +.login-form :global(.ant-input-group input:-webkit-autofill), +.login-form :global(.ant-input:-webkit-autofill), +.login-form :global(.ant-input:-webkit-autofill:hover), +.login-form :global(.ant-input:-webkit-autofill:focus) { + -webkit-box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.3) inset !important; + -webkit-text-fill-color: #fff !important; + transition: background-color 5000s ease-in-out 0s; +} + .login-form :global(.ant-input::placeholder) { color: rgba(255, 255, 255, 0.4) !important; }