Skip to main content

2 docs tagged with "router"

View all tags

生成 pages 和 routing

在 Vue 中,我們會使用到 Vue Router 來實現切換頁面或路由的需求,而在 Nuxt 3 中,預設是沒有使用路由相關套件,直至建立了 pages 目錄,Nuxt 將會自動載入 Vue Router 來管理路由,並且具有一定的規則需要遵循,以下將介紹頁面目錄與路由之間的關係。