fix:登录界面增加中英文切换
This commit is contained in:
@@ -11,6 +11,8 @@ import ResetPwd from './modules/reset-pwd.vue';
|
|||||||
import BindWechat from './modules/bind-wechat.vue';
|
import BindWechat from './modules/bind-wechat.vue';
|
||||||
import { WifiOutlined } from '@ant-design/icons-vue';
|
import { WifiOutlined } from '@ant-design/icons-vue';
|
||||||
import {useI18n} from "vue-i18n";
|
import {useI18n} from "vue-i18n";
|
||||||
|
import { useAppStore } from '@/store/modules/app';
|
||||||
|
const appStore = useAppStore();
|
||||||
//import { $t } from '@/locales';
|
//import { $t } from '@/locales';
|
||||||
interface Props {
|
interface Props {
|
||||||
/** The login module */
|
/** The login module */
|
||||||
@@ -58,9 +60,12 @@ const bgColor = computed(() => {
|
|||||||
<WifiOutlined class="text-64px text-primary lt-sm:text-48px" style="margin-left: 9px"/>
|
<WifiOutlined class="text-64px text-primary lt-sm:text-48px" style="margin-left: 9px"/>
|
||||||
<h3 class="text-18px text-primary font-medium">{{ t(activeModule.label) }}</h3>
|
<h3 class="text-18px text-primary font-medium">{{ t(activeModule.label) }}</h3>
|
||||||
</header>
|
</header>
|
||||||
<main >
|
<main>
|
||||||
|
<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">{{ "WANFi" }}</h3>
|
||||||
<div class="animation-slide-in-left ">
|
<LangSwitch :lang="appStore.locale" :lang-options="appStore.localeOptions" @change-lang="appStore.changeLocale" />
|
||||||
|
</div>
|
||||||
|
<div class="animation-slide-in-left">
|
||||||
<Transition :name="themeStore.page.animateMode" mode="out-in" appear>
|
<Transition :name="themeStore.page.animateMode" mode="out-in" appear>
|
||||||
<component :is="activeModule.component" />
|
<component :is="activeModule.component" />
|
||||||
</Transition>
|
</Transition>
|
||||||
|
|||||||
Reference in New Issue
Block a user