Nux3项目,实现动态路由

参考图片中文件命名,参考图片中选中代码,可以实现动态路由,路由效果如下:
访问http://localhost:3000/calculator/basic-calculator,http://localhost:3000/calculator/test 渲染的页面文件是pages/calculator/[p].vue
访问http://localhost:3000/calculator 渲染的页面是pages/calculator/index.vue
参考图片中文件命名,参考图片中选中代码,可以实现动态路由,路由效果如下:
访问http://localhost:3000/calculator/basic-calculator,http://localhost:3000/calculator/test 渲染的页面文件是pages/calculator/[p].vue
访问http://localhost:3000/calculator 渲染的页面是pages/calculator/index.vue