diff --git a/chat2db-client/src/blocks/Setting/index.tsx b/chat2db-client/src/blocks/Setting/index.tsx index 35dd4a81..938bfe81 100644 --- a/chat2db-client/src/blocks/Setting/index.tsx +++ b/chat2db-client/src/blocks/Setting/index.tsx @@ -459,7 +459,7 @@ function AboutUs() {
{APP_NAME}
- {i18n('setting.text.currentEnv')}:{window._ENV} + {i18n('setting.text.currentEnv')}:{window.__ENV}
{i18n('setting.text.currentVersion')}:v{__APP_VERSION__} build diff --git a/chat2db-client/src/components/Iconfont/index.tsx b/chat2db-client/src/components/Iconfont/index.tsx index 1277ea3f..6ad67dbf 100644 --- a/chat2db-client/src/components/Iconfont/index.tsx +++ b/chat2db-client/src/components/Iconfont/index.tsx @@ -6,12 +6,13 @@ import styles from './index.less'; // 只有本地开发时使用cdn,发布线上时要下载iconfont到 /assets/font if (__ENV === 'local') { let container = ` - @font-face { - font-family: 'iconfont'; /* Project id 3633546 */ - src: url('//at.alicdn.com/t/c/font_3633546_0ip5jtwa6g6.woff2?t=1687700061581') format('woff2'), - url('//at.alicdn.com/t/c/font_3633546_0ip5jtwa6g6.woff?t=1687700061581') format('woff'), - url('//at.alicdn.com/t/c/font_3633546_0ip5jtwa6g6.ttf?t=1687700061581') format('truetype'); - } + /* 在线链接服务仅供平台体验和调试使用,平台不承诺服务的稳定性,企业客户需下载字体包自行发布使用并做好备份。 */ + @font-face { + font-family: 'iconfont'; /* Project id 3633546 */ + src: url('//at.alicdn.com/t/a/font_3633546_p80guyu8w2s.woff2?t=1687748230475') format('woff2'), + url('//at.alicdn.com/t/a/font_3633546_p80guyu8w2s.woff?t=1687748230475') format('woff'), + url('//at.alicdn.com/t/a/font_3633546_p80guyu8w2s.ttf?t=1687748230475') format('truetype'); + } ` let style = document.createElement("style"); style.type = "text/css"; diff --git a/chat2db-client/src/layouts/index.tsx b/chat2db-client/src/layouts/index.tsx index 27aca96a..041fa6a3 100644 --- a/chat2db-client/src/layouts/index.tsx +++ b/chat2db-client/src/layouts/index.tsx @@ -22,7 +22,6 @@ import { declare global { interface Window { _Lang: string; - _ENV: string; _APP_PORT: string; _BUILD_TIME: string; _BaseURL: string; @@ -33,9 +32,6 @@ declare global { const __ENV: string; } -console.log(process.env.UMI_ENV); - -window._ENV = process.env.UMI_ENV! || 'local'; window._Lang = getLang(); const { getDesignToken, useToken } = theme; diff --git a/chat2db-client/src/pages/main/connections/index.less b/chat2db-client/src/pages/main/connections/index.less index e3fefb07..a15f264b 100644 --- a/chat2db-client/src/pages/main/connections/index.less +++ b/chat2db-client/src/pages/main/connections/index.less @@ -119,7 +119,6 @@ .databaseItemRight { display: none; - i { font-size: 16px; } diff --git a/chat2db-client/src/pages/main/index.tsx b/chat2db-client/src/pages/main/index.tsx index 42c7630c..4762fef5 100644 --- a/chat2db-client/src/pages/main/index.tsx +++ b/chat2db-client/src/pages/main/index.tsx @@ -24,8 +24,8 @@ const navConfig: INavItem[] = [ }, { key: 'dashboard', - icon: '\ue616', - iconFontSize: 16, + icon: '\ue629', + iconFontSize: 24, component: , }, { diff --git a/chat2db-client/src/service/base.ts b/chat2db-client/src/service/base.ts index 14f384cc..40aa52cb 100644 --- a/chat2db-client/src/service/base.ts +++ b/chat2db-client/src/service/base.ts @@ -89,7 +89,7 @@ request.interceptors.request.use((url, options) => { request.interceptors.response.use(async (response, options) => { const res = await response.clone().json(); - if (window._ENV === 'desktop') { + if (__ENV === 'desktop') { const DBHUB = response.headers.get('DBHUB') || ''; if (DBHUB) { localStorage.setItem('DBHUB', DBHUB);