繁体   English   中英

Nuxt.js 中带有前缀的参数的目录结构应该是什么?

[英]What should be the directory structure for the param having prefix in Nuxt.js?

我有一条路线/en/rent-:productSlug

由于参数productSlug具有前缀rent ,上述路由的目录结构应该是什么?

如文档中所写,您有几种扩展路由器的方法: https://nuxtjs.org/docs/features/file-system-routing#extending-the-router

https://github.com/nuxt-community/router-extras-module通常就足够了,不确定这是否有助于前缀。 如果没有,您当然可以按照您的发现将其写入配置中。

暂无
暂无

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

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