mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-10-17 15:13:41 +08:00
fix(projects): 修复vertical-mix布局、重构初始化的loading
This commit is contained in:
27
src/App.vue
27
src/App.vue
@@ -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>
|
||||
|
Reference in New Issue
Block a user