vue.js 实现在一个页面跳转到另外一个页面,并且在另外一个页面接收值
A页面的点击方法<t-button @click="openVersion">历史版本</t-button>//绑定点击事件//历史版本点击事件openVersion(){//if(typeof(this.ids) != 'undefined' && this.ids.length == 1){this....
·
A页面的点击方法
<t-button @click="openVersion">历史版本</t-button>
//绑定点击事件
//历史版本点击事件
openVersion(){
//if(typeof(this.ids) != 'undefined' && this.ids.length == 1){
this.$router.push({ path: '/document/docManage', query: { docId:'我是谁'}});
// }else{
// this.$Message.danger('请选择一条数据');
//}
},
B页面接收A页面传过来的数据
console.log(this.$route.query.docId);
更多推荐
已为社区贡献1条内容
所有评论(0)