如何实现vue页面跳转? 本文的编辑与大家分享了vue页面跳转的实现代码。 文章代码介绍得很详细。 我觉得编辑很好。 我现在分享给大家供参考。 有需要的伙伴来看看。
一、this.$router.push (
1、vue
点击跳转4
2、脚本
//跳转前的翻页参数:
goto(item ) {
//storageData中的数据用于在跳转到下一页后返回时返回到跳转前一页
let存储数据={
searchWords: this.keyWord,
pagesize : this.paging.pagesize,
pageno : this.paging.current page
(;
//data中的数据用于通过跳转功能将此页中的数据应用到下一页,就像父子组件传递值一样
let data={
类型: item.src type,
tableName: item.tableName,
name: item.datasourceName,
tableId: item.tableId,
id: item.datasourceId,
(;
//将下一页中使用的所有数据推送至$router
this.$router.push({ (
//name表示跳转后的资源前端访问路径,query用于存储要使用的数据。 其中,page是此页面name。
名称: ' onlinesearch ',
query : {目标数据:数据,