fix(projects): 修复vertical-mix布局、重构初始化的loading

This commit is contained in:
Soybean
2022-01-18 01:17:09 +08:00
parent b2a4ddf5e3
commit 579e07400e
32 changed files with 563 additions and 737 deletions

View File

@@ -1,19 +1,24 @@
<template>
<app-provider>
<router-view />
</app-provider>
<n-config-provider
:theme="theme.naiveTheme"
:theme-overrides="theme.naiveThemeOverrides"
:locale="zhCN"
:date-locale="dateZhCN"
class="h-full"
>
<naive-provider>
<router-view />
</naive-provider>
</n-config-provider>
</template>
<script setup lang="ts">
import { subscribeStore } from '@/store';
import { useTheme } from '@/composables';
import AppProvider from './AppProvider.vue';
import { NConfigProvider, zhCN, dateZhCN } from 'naive-ui';
import { NaiveProvider } from '@/components';
import { useThemeStore, subscribeStore } from '@/store';
function init() {
subscribeStore();
useTheme();
}
const theme = useThemeStore();
init();
subscribeStore();
</script>
<style scoped></style>