From d68c5a3ef7025d67a2d92ea3aa84f73ec77ddd5f Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期一, 03 三月 2025 16:36:50 +0800
Subject: [PATCH] 文件下载失败统一拦截

---
 src/views/business/materialOrder/customsInspection.vue |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/src/views/business/materialOrder/customsInspection.vue b/src/views/business/materialOrder/customsInspection.vue
index 939ad23..b8c03af 100644
--- a/src/views/business/materialOrder/customsInspection.vue
+++ b/src/views/business/materialOrder/customsInspection.vue
@@ -639,6 +639,13 @@
     this.currentId = this.$route.query.currentId
     this.isReport = this.$route.query.isReport
     this.customsInspection = this.$route.query.customsInspection
+  },
+  activated() {
+    if (this.active==1) {
+      this.getInfo();
+    }
+  },
+  getInfo() {
     this.getUserNowList() // 鑾峰彇褰撳墠鐢ㄦ埛淇℃伅
     this.selectStandardMethods() // 鑾峰彇妫�楠屾爣鍑嗕笅鎷夋鏁版嵁
     this.getInfo() // 鑾峰彇鏁版嵁
@@ -1832,7 +1839,11 @@
       return row[property] === value;
     },
     goBack () {
-      this.$router.go(-1)
+      if (this.active == 1) {
+        this.$router.go(-1)
+      } else {
+        this.closeOpenPage()
+      }
     },
     closeOpenPage() {
       this.$router.go(-1)

--
Gitblit v1.9.3