table内容路由跳转:点击prop绑定的字段跳转

81 阅读1分钟
            <template #default="scope">
                      <el-link type="primary" :underline="false"><router-link :to="`/event/eventportary?row=${scope.row.id}`">{{ scope.row.eventName }}</router-link></el-link>
                  </template>
                  
                  
                  // 跳转到数据资产画像

function jumpToEventPortary(row) {

  console.log("jumpToEventPortary");

  console.log(row.id); // router.push("/dataAsset/dataAssetportary" + row.id);

  router.push({

    path: "/event/eventportary",

    query: { id: row.id },

  });

}

上面一种跳转不知道为啥本地可以 线上不行 然后换下面一种 还不知线上咋样 待追加