vue

let id = {
orderNo: this.orderNo,
orderId: this.orderId,
depotCode: this.deliverInfo.depotCode,
depotName: this.deliverInfo.depotName
};

this.$router.options.routes.push({
path: `/editproduct/${JSON.stringify(id)}`,
name: `editproduct/${JSON.stringify(id)}`,
component: (r)=> require(['./editproduct'],r),
meta: {
uniqueCode: "订单详情",
keepAlive: true,
moduleName: "oms",
permissionName: "orderdetail",
}
});

this.$router.addRoutes(this.$router.options.routes);
console.log(this.$router);
// return;
this.$router.push({
path: `editproduct/${JSON.stringify(id)}`,
// path: `editproduct`,
// query: {
// orderNo: this.orderNo,
// orderId: this.orderId,
// depotCode: this.deliverInfo.depotCode,
// depotName: this.deliverInfo.depotName
// }
});
posted @ 2018-09-27 15:26  九五之尊唯我独尊  阅读(73)  评论(0编辑  收藏  举报