feat: 统一修改系统名
This commit is contained in:
2
.env
2
.env
@@ -1,6 +1,6 @@
|
|||||||
VITE_BASE_URL=/
|
VITE_BASE_URL=/
|
||||||
|
|
||||||
VITE_APP_TITLE="WANFi Platform"
|
VITE_APP_TITLE="Platform"
|
||||||
|
|
||||||
# the prefix of the icon name
|
# the prefix of the icon name
|
||||||
VITE_ICON_PREFIX=icon
|
VITE_ICON_PREFIX=icon
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<link rel="icon" href="/favicon.svg" />
|
<link rel="icon" href="/favicon.svg" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<script src="/langs/zh-cn.js"></script>
|
||||||
|
<script src="/langs/en-us.js"></script>
|
||||||
<title>%VITE_APP_TITLE%</title>
|
<title>%VITE_APP_TITLE%</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
5
public/langs/en-us.js
Normal file
5
public/langs/en-us.js
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
const enUS = {
|
||||||
|
system: {
|
||||||
|
title: 'MacroHub'
|
||||||
|
}
|
||||||
|
};
|
||||||
5
public/langs/zh-cn.js
Normal file
5
public/langs/zh-cn.js
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
const zhCN = {
|
||||||
|
system: {
|
||||||
|
title: 'MacroHub'
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -1,9 +1,12 @@
|
|||||||
import zhCN from './langs/zh-cn';
|
import localeZhCN from './langs/zh-cn';
|
||||||
import enUS from './langs/en-us';
|
import localeEnUS from './langs/en-us';
|
||||||
|
|
||||||
|
const fullZhCN = { ...localeZhCN, ...zhCN };
|
||||||
|
const fullEnUS = { ...localeEnUS, ...enUS };
|
||||||
|
|
||||||
const locales: Record<App.I18n.LangType, App.I18n.Schema> = {
|
const locales: Record<App.I18n.LangType, App.I18n.Schema> = {
|
||||||
'zh-CN': zhCN,
|
'zh-CN': fullZhCN,
|
||||||
'en-US': enUS
|
'en-US': fullEnUS
|
||||||
};
|
};
|
||||||
|
|
||||||
export default locales;
|
export default locales;
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ const bgColor = computed(() => {
|
|||||||
</header>
|
</header>
|
||||||
<main>
|
<main>
|
||||||
<div class="flex justify-between items-center">
|
<div class="flex justify-between items-center">
|
||||||
<h3 class="text-28px text-primary font-500 lt-sm:text-22px">{{ "WANFi" }}</h3>
|
<h3 class="text-28px text-primary font-500 lt-sm:text-22px">{{ $t('system.title') }}</h3>
|
||||||
<LangSwitch :lang="appStore.locale" :lang-options="appStore.localeOptions" @change-lang="appStore.changeLocale" />
|
<LangSwitch :lang="appStore.locale" :lang-options="appStore.localeOptions" @change-lang="appStore.changeLocale" />
|
||||||
</div>
|
</div>
|
||||||
<div class="animation-slide-in-left">
|
<div class="animation-slide-in-left">
|
||||||
|
|||||||
Reference in New Issue
Block a user