mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-10-13 05:13:41 +08:00
build(projects): 依赖升级
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<n-config-provider :locale="zhCN" :date-locale="dateZhCN" :theme-overrides="app.themeOverrids">
|
||||
<n-config-provider :locale="zhCN" :date-locale="dateZhCN" :theme="theme" :theme-overrides="app.themeOverrids">
|
||||
<naive-app>
|
||||
<router-view />
|
||||
</naive-app>
|
||||
@@ -7,10 +7,12 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { NConfigProvider, zhCN, dateZhCN } from 'naive-ui';
|
||||
import { NConfigProvider, darkTheme, zhCN, dateZhCN } from 'naive-ui';
|
||||
import { computed } from 'vue';
|
||||
import { NaiveApp } from '@/components';
|
||||
import { useAppStore } from '@/store';
|
||||
|
||||
const app = useAppStore();
|
||||
const theme = computed(() => (app.themeSettings.darkMode ? darkTheme : undefined));
|
||||
</script>
|
||||
<style></style>
|
||||
|
Reference in New Issue
Block a user