Vue路由传递参数

路由配置

  {
    path: '/manage/detailgovproject',
    key: 'detailgovproject',
    name: 'DetailGovProject',
    component: DetailGovProject
  },

fromPage.vue

      this.$router.push({
        name: 'DetailGovProject',
        params: {
          rowRecord: rowRecord
        }
      });

toPage.vue

  beforeCreate() {
    console.log('this.$router.record: ====> ', this.$route.params.rowRecord);
  },
posted @ 2023-03-06 16:13  Felix_Openmind  阅读(24)  评论(0)    收藏  举报
*{cursor: url(https://files-cdn.cnblogs.com/files/morango/fish-cursor.ico),auto;}