簡體   English   中英

Nuxt.Js 將父頁面重定向到索引

[英]Nuxt.Js redirect parent page to index

我的頁面文件夾結構如下:

--pages
  --projects
    --slug.vue
  --index.vue

When I go to the "/projects/something" URL it's work fine, but when I go to the "/project" URL I would like see (main page) index.vue. 我怎樣才能做到這一點?

你應該這樣使用

--pages
  --projects
    --_slug.vue
    --index.vue

希望它能解決問題。 你可以從這里閱讀更多

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM