nuxt router
时间: 2023-10-18 10:27:01 浏览: 101
Nuxt.js的router是根据pages目录结构自动生成的,不需要单独配置router。这样的设计使得基本的路由使用变得简单。但是有些情况下,我们需要根据项目的实际情况自定义路由,比如处理带有.html后缀的访问页面。对于这种情况,我们可以在nuxt.config.js配置文件中进行相应的配置。通过extendRoutes()方法,我们可以自定义路由配置。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [nuxt.js 的router作用解说:使用,自定义extendRoutes配置,route和router区别](https://blog.csdn.net/weixin_37510612/article/details/116019668)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [Nuxt路由配置,自定义路由配置 - 实战教程基础-Day04](https://blog.csdn.net/qq_43762932/article/details/129545123)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文