摘要:
一、区别 let route = useRoute() 注意: 1、params参数可选可不选,参数占位后面+? 2、path占位符 3、使用name 二、案例 1、跳转 <template> <ul> <RouterLink :to="{ name:'detail', params: news } 阅读全文
posted @ 2025-03-16 18:56
市丸银
阅读(118)
评论(0)
推荐(0)
摘要:
一、区别 没有 this.route let route = userRoute() route 相当于 this.route 二、路由 <template> <ul> <RouterLink :to="{ path:'/news/detail', query:news }" v-for="news 阅读全文
posted @ 2025-03-16 18:41
市丸银
阅读(105)
评论(0)
推荐(0)

浙公网安备 33010602011771号