style(Login): update login styles

This commit is contained in:
陈凯龙
2022-01-07 09:12:32 +08:00
parent 1436543a5c
commit eb68f1d919
11 changed files with 40 additions and 36 deletions

View File

@@ -1,17 +1,11 @@
<script setup lang="ts">
import { computed } from 'vue'
import { useAppStore } from '@/store/modules/app'
import { useLocaleStore } from '@/store/modules/locale'
import { ElConfigProvider } from 'element-plus'
import { ConfigGlobal } from '@/components/ConfigGlobal'
import { isDark } from '@/utils/is'
const appStore = useAppStore()
const localeStore = useLocaleStore()
const locale = computed(() => localeStore.locale)
const size = computed(() => appStore.size)
function initDark() {
@@ -24,15 +18,7 @@ initDark()
<template>
<ConfigGlobal :size="size">
<ElConfigProvider
:locale="locale.elLocale"
:size="size"
:button="{
autoInsertSpace: true
}"
>
<RouterView />
</ElConfigProvider>
<RouterView />
</ConfigGlobal>
</template>