fix: theme setting display bug
This commit is contained in:
parent
50f2c9629d
commit
62a8bdb602
@ -6,7 +6,7 @@
|
|||||||
<div class="login-image" :style="{ backgroundImage: `url(${loginImage})` }"></div>
|
<div class="login-image" :style="{ backgroundImage: `url(${loginImage})` }"></div>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :xs="24" :sm="24" :md="14" :lg="14" :xl="14" class="right-container flex-center">
|
<el-col :xs="24" :sm="24" :md="14" :lg="14" :xl="14" class="right-container flex-center">
|
||||||
<el-dropdown trigger="click" type="primary" class="lang">
|
<el-dropdown trigger="click" type="primary" class="lang" v-if="lang">
|
||||||
<template #dropdown>
|
<template #dropdown>
|
||||||
<el-dropdown-menu style="width: 180px">
|
<el-dropdown-menu style="width: 180px">
|
||||||
<el-dropdown-item
|
<el-dropdown-item
|
||||||
@ -45,6 +45,12 @@ import { getThemeImg } from '@/utils/theme'
|
|||||||
import useStore from '@/stores'
|
import useStore from '@/stores'
|
||||||
import { useLocalStorage } from '@vueuse/core'
|
import { useLocalStorage } from '@vueuse/core'
|
||||||
import { langList, localeConfigKey, getBrowserLang } from '@/locales/index'
|
import { langList, localeConfigKey, getBrowserLang } from '@/locales/index'
|
||||||
|
defineProps({
|
||||||
|
lang: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true
|
||||||
|
}
|
||||||
|
})
|
||||||
defineOptions({ name: 'LoginLayout' })
|
defineOptions({ name: 'LoginLayout' })
|
||||||
const { user } = useStore()
|
const { user } = useStore()
|
||||||
|
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
<el-icon><Close /></el-icon>
|
<el-icon><Close /></el-icon>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<login-layout style="height: 530px">
|
<login-layout style="height: 530px" :lang="false">
|
||||||
<LoginContainer :subTitle="data.slogan" class="login-container">
|
<LoginContainer :subTitle="data.slogan" class="login-container">
|
||||||
<div class="mask"></div>
|
<div class="mask"></div>
|
||||||
<h2 class="mb-24">{{ $t('views.login.title') }}</h2>
|
<h2 class="mb-24">{{ $t('views.login.title') }}</h2>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user