Skip to content

Commit

Permalink
fix: move config provider to top level
Browse files Browse the repository at this point in the history
  • Loading branch information
StarHeartHunt committed Aug 8, 2023
1 parent 84b5612 commit 5837d6e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
20 changes: 10 additions & 10 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ const themeOverrides: GlobalThemeOverrides = {
</script>

<template>
<div class="antialiased mx-auto">
<n-config-provider
:theme="theme"
:theme-overrides="themeOverrides"
:locale="zhCN"
:date-locale="dateZhCN"
:hljs="hljs"
>
<n-config-provider
:theme="theme"
:theme-overrides="themeOverrides"
:locale="zhCN"
:date-locale="dateZhCN"
:hljs="hljs"
>
<div class="antialiased mx-auto">
<n-layout position="absolute" :native-scrollbar="false">
<div class="min-h-screen flex flex-col">
<Header></Header>
Expand All @@ -49,8 +49,8 @@ const themeOverrides: GlobalThemeOverrides = {
<n-back-top />
</div>
</n-layout>
</n-config-provider>
</div>
</div>
</n-config-provider>
</template>

<style scoped></style>
1 change: 0 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export default defineConfig({
},
build: {
sourcemap: true,

rollupOptions: {
output: {
manualChunks(id) {
Expand Down

0 comments on commit 5837d6e

Please sign in to comment.