Skip to content

Commit

Permalink
fix(styles): fix toggle-lang bg
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Jun 14, 2023
1 parent e6abf93 commit 473095b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/layouts/common/global-header/components/toggle-lang.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<hover-container class="w-40px h-full">
<hover-container class="w-40px h-full" :inverted="theme.header.inverted">
<n-dropdown :options="options" trigger="hover" :value="language" @select="handleSelect">
<icon-cil:language class="text-18px outline-transparent" />
</n-dropdown>
Expand All @@ -9,8 +9,10 @@
<script lang="ts" setup>
import { ref } from 'vue';
import { useI18n } from 'vue-i18n';
import { useThemeStore } from '@/store';
import { localStg } from '@/utils';
const theme = useThemeStore();
const { locale } = useI18n();
const language = ref<I18nType.langType>(localStg.get('lang') || 'zh-CN');
Expand Down

1 comment on commit 473095b

@vercel
Copy link

@vercel vercel bot commented on 473095b Jun 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.