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
// }
});