nuxt动态路由配置
程序员文章站
2024-02-13 19:20:10
...
1、pages文件结构
2、nuxt-link使用
<nuxt-link v-for="(val,index) in listCon"
:to="{
name:'newsDetail-id',
params:
{
id:val.tag_id,
title:val.title,
media_info:val.media_info,
media_name:val.media_name,
datetime:val.datetime,
abstract:val.abstract,
image_list:val.image_list,
repin_count:val.repin_count,
comment_count:val.comment_count,
keywords:val.keywords
}
}"
</nuxt-link>