mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-22 15:56:15 -04:00
refactor: removed theme editor
This commit is contained in:
parent
0af7d81abd
commit
8559fbd774
1 changed files with 3 additions and 7 deletions
10
src/App.vue
10
src/App.vue
|
@ -4,7 +4,6 @@ import { layouts } from './layouts';
|
||||||
import { computed } from 'vue';
|
import { computed } from 'vue';
|
||||||
import { useRoute } from 'vue-router'
|
import { useRoute } from 'vue-router'
|
||||||
import { darkThemeOverrides, lightThemeOverrides } from './themes'
|
import { darkThemeOverrides, lightThemeOverrides } from './themes'
|
||||||
import { NThemeEditor } from 'naive-ui'; // TODO: remove before mep
|
|
||||||
import {
|
import {
|
||||||
darkTheme,
|
darkTheme,
|
||||||
NConfigProvider,
|
NConfigProvider,
|
||||||
|
@ -24,12 +23,9 @@ const themeOverrides = computed(() => styleStore.isDarkTheme ? darkThemeOverride
|
||||||
<n-config-provider :theme="theme" :theme-overrides="themeOverrides">
|
<n-config-provider :theme="theme" :theme-overrides="themeOverrides">
|
||||||
<n-global-style />
|
<n-global-style />
|
||||||
<n-message-provider placement="bottom">
|
<n-message-provider placement="bottom">
|
||||||
<n-theme-editor>
|
<component :is="layout">
|
||||||
<!-- TODO: remove before mep -->
|
<router-view />
|
||||||
<component :is="layout">
|
</component>
|
||||||
<router-view />
|
|
||||||
</component>
|
|
||||||
</n-theme-editor>
|
|
||||||
</n-message-provider>
|
</n-message-provider>
|
||||||
</n-config-provider>
|
</n-config-provider>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue