简体   繁体   English

禁用默认 nuxt.js 路由

[英]Disable default nuxt.js routing

Is it possible to disable the default routing of nuxt?是否可以禁用nuxt的默认路由?

I have an spa, which should run on different subfolders/urls, but somehow the js is not kicking in properly.我有一个水疗中心,它应该在不同的子文件夹/网址上运行,但不知何故 js 没有正确启动。 And i think because nuxt takes over the routing.我认为是因为 nuxt 接管了路由。

Or do you have other ideas how to get this running?或者你有其他想法如何让它运行?

Nuxt's implicit dynamic routing is a bit tricky to get used to. Nuxt 的隐式动态路由有点难以适应。

It sounds like you'd appreciate nuxt-community's router-module , which allows you to specify routes in a router.js file like a standard Vue.js project.听起来您会喜欢nuxt-community 的 router-module ,它允许您在router.js文件中指定路由,就像标准的 Vue.js 项目一样。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM