vue 实现详情页面伪静态化,用日期当动态路由
路由设置下面展示一些 内联代码片。//path用这种写法是这个思路实现伪静态的核心{ path: '/news/:detailId', name: '文章详情', component: () => import('@/views/consultDetails')}列表页面跳转toDetail(id,createdDate) { // createdDate是文章生成日期 // id是文章id this.$router.push({name: '文
原创
2022-03-16 12:27:26 ·
2279 阅读 ·
0 评论