manager/src/views/order/order/orderDetail.vue
@@ -713,7 +713,14 @@ }, watch: { $route (to, from) { this.$router.go(0); console.log("to:",to.fullPath) console.log("form:",from.fullPath) // 正确打印路由对象的方法 if(from.fullPath === "/orderList" && to.fullPath.includes("/order-detail")){ this.sn = this.$route.query.sn; this.getDataList(); this.getOrderPackage(); } }, }, methods: { @@ -910,6 +917,7 @@ }, }, mounted () { console.log("加载数据") this.sn = this.$route.query.sn; this.getDataList(); this.getOrderPackage();