标签:color preview 参数 his 添加 params bsp span one
首先 定义路由,添加参数
{
name: ‘preview‘,
path: ‘preview/:id‘, //参数
component: () =>
import(
‘@/--------‘
)
}
传参时使用name和params
this.$router.push({ name: ‘preview‘, params: { id } });
然后用 this.$route.params 取参数 继续做处理就行了
标签:color preview 参数 his 添加 params bsp span one
原文地址:https://www.cnblogs.com/Jennyishere/p/13212124.html