diff --git a/frontend/src/components/pure/ms-menu-panel/index.vue b/frontend/src/components/pure/ms-menu-panel/index.vue index a70df3417b..eb250d0420 100644 --- a/frontend/src/components/pure/ms-menu-panel/index.vue +++ b/frontend/src/components/pure/ms-menu-panel/index.vue @@ -78,7 +78,6 @@ .menu-item { height: 38px; line-height: 38px; - font-family: 'PingFang SC', AlibabaPuHuiTi; } } } diff --git a/frontend/src/components/pure/ms-minder-editor/script/protocol/png.ts b/frontend/src/components/pure/ms-minder-editor/script/protocol/png.ts index 10ba116adf..e51af31671 100644 --- a/frontend/src/components/pure/ms-minder-editor/script/protocol/png.ts +++ b/frontend/src/components/pure/ms-minder-editor/script/protocol/png.ts @@ -60,7 +60,6 @@ function getSVGInfo(minder: any) { $svg[index].setAttribute('width', renderBox.width + 1); $svg[index].setAttribute('height', renderBox.height + 1); - $svg[index].setAttribute('style', 'font-family: "PingFang SC",AlibabaPuHuiTi;'); const div = document.createElement('div'); div.appendChild($svg[index]); diff --git a/frontend/src/components/pure/ms-minder-editor/script/protocol/svg.ts b/frontend/src/components/pure/ms-minder-editor/script/protocol/svg.ts index ccebc3b06c..2444afb20e 100644 --- a/frontend/src/components/pure/ms-minder-editor/script/protocol/svg.ts +++ b/frontend/src/components/pure/ms-minder-editor/script/protocol/svg.ts @@ -39,10 +39,6 @@ function exportSVG(minder: any) { $svg[index].setAttribute('width', width + padding * 2 || 0); $svg[index].setAttribute('height', height + padding * 2 || 0); - $svg[index].setAttribute( - 'style', - `font-family: 'PingFang SC',AlibabaPuHuiTi; background: ${minder.getStyle('background')}` - ); $svg[index].setAttribute( 'viewBox', diff --git a/frontend/src/components/pure/ms-minder-editor/style/editor.less b/frontend/src/components/pure/ms-minder-editor/style/editor.less index 4affac5b0e..450c2d58ae 100644 --- a/frontend/src/components/pure/ms-minder-editor/style/editor.less +++ b/frontend/src/components/pure/ms-minder-editor/style/editor.less @@ -38,7 +38,6 @@ div.minder-editor-container { right: 0; bottom: 0; left: 0; - font-family: 'PingFang SC', AlibabaPuHuiTi; } .minder-editor { @apply absolute bottom-0 left-0 right-0; diff --git a/frontend/src/locale/helper.ts b/frontend/src/locale/helper.ts index 328add1bbf..895a1831a9 100644 --- a/frontend/src/locale/helper.ts +++ b/frontend/src/locale/helper.ts @@ -1,10 +1,5 @@ import type { LocaleType } from '#/global'; -export function setHtmlPageLang(locale: LocaleType) { - document.querySelector('html')?.setAttribute('lang', locale); - document.body.style.fontFamily = 'PingFang SC, AlibabaPuHuiTi'; -} - export const loadLocalePool: LocaleType[] = []; export function setLoadLocalePool(cb: (lp: LocaleType[]) => void) { diff --git a/frontend/src/locale/index.ts b/frontend/src/locale/index.ts index f5177104b1..a392b4b407 100644 --- a/frontend/src/locale/index.ts +++ b/frontend/src/locale/index.ts @@ -1,6 +1,6 @@ import { createI18n } from 'vue-i18n'; -import { setHtmlPageLang, setLoadLocalePool } from './helper'; +import { setLoadLocalePool } from './helper'; import type { LocaleType } from '#/global'; import type { App } from 'vue'; import type { I18nOptions } from 'vue-i18n'; @@ -18,7 +18,6 @@ async function createI18nOptions(): Promise { const defaultLocal = await import(`./${locale}/index.ts`); const message = defaultLocal.default?.message ?? {}; - setHtmlPageLang(locale); setLoadLocalePool((loadLocalePool) => { loadLocalePool.push(locale); }); diff --git a/frontend/src/locale/useLocale.ts b/frontend/src/locale/useLocale.ts index 98f852544c..435d2062d2 100644 --- a/frontend/src/locale/useLocale.ts +++ b/frontend/src/locale/useLocale.ts @@ -3,7 +3,7 @@ import { Message } from '@arco-design/web-vue'; import dayjs from 'dayjs'; import { i18n } from '@/locale'; -import { loadLocalePool, setHtmlPageLang } from '@/locale/helper'; +import { loadLocalePool } from '@/locale/helper'; import type { LocaleType, Recordable } from '#/global'; @@ -24,7 +24,6 @@ function setI18nLanguage(locale: LocaleType) { (i18n.global.locale as any).value = locale; } localStorage.setItem('MS-locale', locale); - setHtmlPageLang(locale); } /** diff --git a/frontend/src/views/project-management/projectAndPermission/index.vue b/frontend/src/views/project-management/projectAndPermission/index.vue index 34d63aef90..62beb9689e 100644 --- a/frontend/src/views/project-management/projectAndPermission/index.vue +++ b/frontend/src/views/project-management/projectAndPermission/index.vue @@ -155,7 +155,6 @@ .menu-item { height: 38px; line-height: 38px; - font-family: 'PingFang SC', AlibabaPuHuiTi; } } }