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);
Logo

前往低代码交流专区

更多推荐