2026-02-02 10:00:51 +08:00
|
|
|
<script lang="ts" setup>
|
|
|
|
|
import { useI18n } from "vue-i18n";
|
|
|
|
|
import { useLanguageStore } from "./stores/LanguageStore";
|
|
|
|
|
|
|
|
|
|
onMounted(() => {
|
2026-02-02 21:03:52 +08:00
|
|
|
// 加载 i18n 初始语言
|
2026-02-02 10:00:51 +08:00
|
|
|
useI18n().locale.value = useLanguageStore().language;
|
|
|
|
|
});
|
|
|
|
|
</script>
|
2025-08-01 17:52:35 +08:00
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<router-view />
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
2026-02-26 03:05:05 +08:00
|
|
|
<style>
|
|
|
|
|
/* 接触 scoped 开启全局模式加载字体 */
|
|
|
|
|
|
|
|
|
|
@font-face {
|
|
|
|
|
font-family: "LXGW";
|
|
|
|
|
src: url("/fonts/LXGWBright-Regular.woff2") format("woff2");
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-style: normal;
|
|
|
|
|
font-display: swap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@font-face {
|
|
|
|
|
font-family: "Harmony";
|
|
|
|
|
src: url("/fonts/HarmonyOS_Sans_Regular.woff2") format("woff2");
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-style: normal;
|
|
|
|
|
font-display: swap;
|
|
|
|
|
}
|
|
|
|
|
</style>
|