2
0

style: 主题切换显示

This commit is contained in:
TsMask
2024-12-06 21:31:59 +08:00
parent e637781987
commit 54abd0ce0a
2 changed files with 2 additions and 4 deletions

View File

@@ -57,13 +57,12 @@ const headerMenus = computed(() => {
<GlobalBreadcrumb v-if="!appStore.isMobile" class="ml-12px" /> <GlobalBreadcrumb v-if="!appStore.isMobile" class="ml-12px" />
</div> </div>
<div class="h-full flex-y-center justify-end"> <div class="h-full flex-y-center justify-end">
<LangSwitch :lang="appStore.locale" :lang-options="appStore.localeOptions" @change-lang="appStore.changeLocale" v-if="hasRole('super')" /> <LangSwitch :lang="appStore.locale" :lang-options="appStore.localeOptions" @change-lang="appStore.changeLocale" />
<FullScreen v-if="!appStore.isMobile" :full="isFullscreen" @click="toggle" /> <FullScreen v-if="!appStore.isMobile" :full="isFullscreen" @click="toggle" />
<ThemeSchemaSwitch <ThemeSchemaSwitch
:theme-schema="themeStore.themeScheme" :theme-schema="themeStore.themeScheme"
:is-dark="themeStore.darkMode" :is-dark="themeStore.darkMode"
@switch="themeStore.toggleThemeScheme" @switch="themeStore.toggleThemeScheme"
v-if="hasRole('super')"
/> />
<ThemeButton v-if="hasRole('super')" /> <ThemeButton v-if="hasRole('super')" />
<UserAvatar /> <UserAvatar />

View File

@@ -11,7 +11,6 @@ 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 { $t } from '@/locales';
interface Props { interface Props {
/** The login module */ /** The login module */
module?: UnionKey.LoginModule; module?: UnionKey.LoginModule;