perf element global config

This commit is contained in:
LiuHao
2023-04-02 14:15:47 +08:00
parent 251d2411f2
commit d95fab75a7
8 changed files with 18 additions and 33 deletions

View File

@ -1,10 +1,16 @@
<template>
<router-view />
<el-config-provider :locale="appStore.locale" :size="size">
<router-view />
</el-config-provider>
</template>
<script setup lang="ts">
import useSettingsStore from '@/store/modules/settings'
import { handleThemeStyle } from '@/utils/theme'
import useAppStore from '@/store/modules/app';
const appStore = useAppStore();
const size = computed(() => appStore.size as any);
onMounted(() => {
nextTick(() => {