API: The Generator Class Generator Class Hooks API: The Generator Class Generator Class 来源: generator/generator.js Hooks 我们可以在某些生命周期事件中注册钩子。 Hook Arguments When gene...
The Fetch hook Nuxt >= 2.12 Options The Fetch hook The fetch hook is for fetching data asynchronously. It is called on server-side when rendering the route, and on client-sid...
Layouts directory Default Layout Custom Layout Error Page Layouts directory Layouts are a great help when you want to change the look and feel of your Nuxt app. Whether you w...
The serverMiddleware property serverMiddleware vs middleware! Usage Custom Server Middleware Custom API endpoint Object Syntax The serverMiddleware property Define server-s...
The srcDir Property The srcDir Property Type: String Default: rootDir value Define the source directory of your Nuxt.js application If a relative path is specified it w...