<NuxtLayout :name="layout"> <NuxtPage /> </NuxtLayout> </template> // 不設置name屬性默認使用名為 default.vue 的布局組件,可通過 name 或 :name 動態(tài)修改默認布局。可以做到切換主題的功能 const layout = "custom"; 1.6. middleware中間件 Numxt有強大的中間件功能,很方便定制,使用也簡單,可設置...
www.dbjr.com.cn/article/2707...htm 2025-6-1