Skip to content

Commit 62a8bdb

Browse files
fix: theme setting display bug
1 parent 50f2c96 commit 62a8bdb

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

ui/src/components/login-layout/index.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div class="login-image" :style="{ backgroundImage: `url(${loginImage})` }"></div>
77
</el-col>
88
<el-col :xs="24" :sm="24" :md="14" :lg="14" :xl="14" class="right-container flex-center">
9-
<el-dropdown trigger="click" type="primary" class="lang">
9+
<el-dropdown trigger="click" type="primary" class="lang" v-if="lang">
1010
<template #dropdown>
1111
<el-dropdown-menu style="width: 180px">
1212
<el-dropdown-item
@@ -45,6 +45,12 @@ import { getThemeImg } from '@/utils/theme'
4545
import useStore from '@/stores'
4646
import { useLocalStorage } from '@vueuse/core'
4747
import { langList, localeConfigKey, getBrowserLang } from '@/locales/index'
48+
defineProps({
49+
lang: {
50+
type: Boolean,
51+
default: true
52+
}
53+
})
4854
defineOptions({ name: 'LoginLayout' })
4955
const { user } = useStore()
5056

ui/src/views/theme/LoginPreview.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<el-icon><Close /></el-icon>
1111
</div>
1212
</div>
13-
<login-layout style="height: 530px">
13+
<login-layout style="height: 530px" :lang="false">
1414
<LoginContainer :subTitle="data.slogan" class="login-container">
1515
<div class="mask"></div>
1616
<h2 class="mb-24">{{ $t('views.login.title') }}</h2>

0 commit comments

Comments
 (0)