From 2510bcd24e37c2802390d08332b7ef36ab166b32 Mon Sep 17 00:00:00 2001 From: baiqi Date: Fri, 5 Jul 2024 16:40:51 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E4=BD=BF=E7=94=A8=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E5=AD=97=E4=BD=93=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{font => fonts}/AlibabaPuHuiTi-3-55-Regular.eot | Bin .../{font => fonts}/AlibabaPuHuiTi-3-55-Regular.otf | Bin .../{font => fonts}/AlibabaPuHuiTi-3-55-Regular.ttf | Bin .../AlibabaPuHuiTi-3-55-Regular.woff | Bin .../AlibabaPuHuiTi-3-55-Regular.woff2 | Bin frontend/src/locale/helper.ts | 8 +------- 6 files changed, 1 insertion(+), 7 deletions(-) rename frontend/public/{font => fonts}/AlibabaPuHuiTi-3-55-Regular.eot (100%) rename frontend/public/{font => fonts}/AlibabaPuHuiTi-3-55-Regular.otf (100%) rename frontend/public/{font => fonts}/AlibabaPuHuiTi-3-55-Regular.ttf (100%) rename frontend/public/{font => fonts}/AlibabaPuHuiTi-3-55-Regular.woff (100%) rename frontend/public/{font => fonts}/AlibabaPuHuiTi-3-55-Regular.woff2 (100%) diff --git a/frontend/public/font/AlibabaPuHuiTi-3-55-Regular.eot b/frontend/public/fonts/AlibabaPuHuiTi-3-55-Regular.eot similarity index 100% rename from frontend/public/font/AlibabaPuHuiTi-3-55-Regular.eot rename to frontend/public/fonts/AlibabaPuHuiTi-3-55-Regular.eot diff --git a/frontend/public/font/AlibabaPuHuiTi-3-55-Regular.otf b/frontend/public/fonts/AlibabaPuHuiTi-3-55-Regular.otf similarity index 100% rename from frontend/public/font/AlibabaPuHuiTi-3-55-Regular.otf rename to frontend/public/fonts/AlibabaPuHuiTi-3-55-Regular.otf diff --git a/frontend/public/font/AlibabaPuHuiTi-3-55-Regular.ttf b/frontend/public/fonts/AlibabaPuHuiTi-3-55-Regular.ttf similarity index 100% rename from frontend/public/font/AlibabaPuHuiTi-3-55-Regular.ttf rename to frontend/public/fonts/AlibabaPuHuiTi-3-55-Regular.ttf diff --git a/frontend/public/font/AlibabaPuHuiTi-3-55-Regular.woff b/frontend/public/fonts/AlibabaPuHuiTi-3-55-Regular.woff similarity index 100% rename from frontend/public/font/AlibabaPuHuiTi-3-55-Regular.woff rename to frontend/public/fonts/AlibabaPuHuiTi-3-55-Regular.woff diff --git a/frontend/public/font/AlibabaPuHuiTi-3-55-Regular.woff2 b/frontend/public/fonts/AlibabaPuHuiTi-3-55-Regular.woff2 similarity index 100% rename from frontend/public/font/AlibabaPuHuiTi-3-55-Regular.woff2 rename to frontend/public/fonts/AlibabaPuHuiTi-3-55-Regular.woff2 diff --git a/frontend/src/locale/helper.ts b/frontend/src/locale/helper.ts index ac2176d087..328add1bbf 100644 --- a/frontend/src/locale/helper.ts +++ b/frontend/src/locale/helper.ts @@ -2,13 +2,7 @@ import type { LocaleType } from '#/global'; export function setHtmlPageLang(locale: LocaleType) { document.querySelector('html')?.setAttribute('lang', locale); - let fontFamily = ''; - if (locale === 'en-US') { - fontFamily = 'Helvetica Neue, Arial'; - } else { - fontFamily = 'PingFang SC, Microsoft YaHei'; - } - document.body.style.fontFamily = fontFamily; + document.body.style.fontFamily = 'PingFang SC, AlibabaPuHuiTi'; } export const loadLocalePool: LocaleType[] = [];