1. 程式人生 > >vue 頁面跳轉。路由配置

vue 頁面跳轉。路由配置

//當觸發一個按鈕,發生跳轉

applyDetail(index) {

//路由跳轉

this.$router.push({

path: "/huaxiainsuranceApplyDetail",//目標地址,vue的跳轉需要單獨的配置

query: {

//跳轉攜帶的引數資訊

    userId: this.insuranceList[index].userId,

    idAdd: this.insuranceList[index].id,

    applyNoEditor: this.insuranceList[index].applyNo,

    applyStatus: this.insuranceList[index].status//當前領藥狀態

}

});

},

//配置,路由

這樣,你的按鈕再點選的時候,就可以跳轉了。