Skip to content

Commit 15838d7

Browse files
committed
perf: Move n-message-provider from root
1 parent a4c95fd commit 15838d7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

app.vue

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@
88

99
<nuxt-loading-indicator :color="themeConfig.light?.common?.primaryColor" :height="3" />
1010

11-
<n-message-provider>
12-
<nuxt-layout>
13-
<nuxt-page />
14-
</nuxt-layout>
15-
</n-message-provider>
11+
<nuxt-layout>
12+
<nuxt-page />
13+
</nuxt-layout>
1614
</naive-config>
1715
</template>
1816

pages/account.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
</n-tab-pane>
1313

1414
<n-tab-pane v-if="user?.provider === 'default'" name="security" tab="Security">
15-
<AccountPassword class="mt-4" />
15+
<n-message-provider>
16+
<AccountPassword class="mt-4" />
17+
</n-message-provider>
1618
</n-tab-pane>
1719

1820
<n-tab-pane name="preferences" tab="Preferences">

0 commit comments

Comments
 (0)