路由跳转的几种方式
{
path: '/CoursePlay/:cid/:ctype',
name: 'CoursePlay/:rid',
component: CoursePlay
}
this.$router.push({ path: `/ExamResult/${cid}/${ctype}` }) //${cid}是变量
{
path: '/TestPayment',
name: 'TestPayment/:orderid',
component: TestPayment
}
this.$router.push({'path':'/TestPayment',query:{orderid:bianlian}})
{
path: '/PayMember/:tabActive/',
name: 'PayMember/:cid/:price/:ctype/:disable',
component: PayMember
}
this.$router.push({ path: `/PayMember/1`, query: { price: this.decimal2price, cid: this.cid, ctype: this.ctype } })
{
path:'/ExamResult',
name:'ExamResult/:prePage',
component:ExamResult
}
this.$router.push({'name': 'ExamResult','query':{'prePage':'ExamRecords'}})