From 8afb03dff259e8312dc6786680b0e420a8de9f24 Mon Sep 17 00:00:00 2001 From: peng <peng.com> Date: 星期二, 16 九月 2025 14:20:33 +0800 Subject: [PATCH] 解决已分享不显示问题 --- manager/src/views/order/order/orderDetail.vue | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/manager/src/views/order/order/orderDetail.vue b/manager/src/views/order/order/orderDetail.vue index 0007005..161680c 100644 --- a/manager/src/views/order/order/orderDetail.vue +++ b/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) + // 姝g‘鎵撳嵃璺敱瀵硅薄鐨勬柟娉� + if((from.fullPath === "/orderList"|| from.fullPath === "/fictitiousOrderList" ||from.fullPath === "/orderStatistics") && to.fullPath.includes("/order-detail")){ + this.sn = this.$route.query.sn; + this.getDataList(); + this.getOrderPackage(); + } }, }, methods: { @@ -796,6 +803,7 @@ // 鑾峰彇璁㈠崟璇︽儏 getDataList () { this.loading = true; + console.log("鎵ц鑾峰彇璁㈠崟淇℃伅鎿嶄綔") API_Order.orderDetail(this.sn).then((res) => { this.loading = false; if (res.success) { @@ -910,6 +918,7 @@ }, }, mounted () { + console.log("鍔犺浇鏁版嵁") this.sn = this.$route.query.sn; this.getDataList(); this.getOrderPackage(); -- Gitblit v1.8.0