vue.js - vue-router 如何传递对象?
本文介绍了vue.js - vue-router 如何传递对象?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问 题
this.$router.push({ name: 'framecore', params: { id:createUUID(6,16) }});
传递值可以
如何传递对象 ?
解决方案
this.$router,push({path: 'your path', query: {pramas1: value1, pramas2: value2, parmas3: value3}})
get:
this.getValue1 = this.$route.query.pramas1
这篇关于vue.js - vue-router 如何传递对象?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文