mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 15:42:09 +00:00
fix(nuxt3): enable app-level <suspense>
with pages module (#1929)
This commit is contained in:
parent
4b367a1959
commit
0a74940bf6
@ -29,8 +29,6 @@ export default defineNuxtModule({
|
||||
})
|
||||
|
||||
nuxt.hook('app:resolve', (app) => {
|
||||
// Remove default root with Suspense
|
||||
app.rootComponent = resolve(runtimeDir, 'root.vue')
|
||||
// Add default layout for pages
|
||||
if (app.mainComponent.includes('nuxt-welcome')) {
|
||||
app.mainComponent = resolve(runtimeDir, 'app.vue')
|
||||
|
@ -1,3 +0,0 @@
|
||||
<template>
|
||||
<App />
|
||||
</template>
|
Loading…
Reference in New Issue
Block a user