Nux3项目,实现动态路由

 

参考图片中文件命名,参考图片中选中代码,可以实现动态路由,路由效果如下:

访问http://localhost:3000/calculator/basic-calculator,http://localhost:3000/calculator/test 渲染的页面文件是pages/calculator/[p].vue

访问http://localhost:3000/calculator 渲染的页面是pages/calculator/index.vue

posted @ 2025-04-03 13:48  今天滴天气不错  阅读(61)  评论(0)    收藏  举报