From af82b864cc73fe5a26db483d2633bc337a9e1e0e Mon Sep 17 00:00:00 2001
From: Surpriseplus <845948745@qq.com>
Date: 星期二, 03 一月 2023 14:20:07 +0800
Subject: [PATCH] 1

---
 src/views/PackageTwo/WareInspection.vue |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/src/views/PackageTwo/WareInspection.vue b/src/views/PackageTwo/WareInspection.vue
index 4e1ff19..f016dd1 100644
--- a/src/views/PackageTwo/WareInspection.vue
+++ b/src/views/PackageTwo/WareInspection.vue
@@ -11,6 +11,7 @@
 </template>
 
 <script>
+import { getToken } from "@/utils/auth";
 export default {
   data() {
     return {
@@ -19,13 +20,18 @@
   },
   methods: {
     showChangeIfream(res) {
+
+      if (res.indexOf('token=') != -1) {
+        res = res + getToken();
+      }
+
       this.$store.state.reporturl = res;
       this.reportUrl = res;
       // console.log("2", this.reportUrl)
     }
   },
   mounted() {
-    this.reportUrl = this.$store.reporturl;
+    this.showChangeIfream(this.$store.reporturl)
     // console.log("1", this.reportUrl)
     this.$bus.$on('changeNaveUrl', (res) => {
       this.showChangeIfream(res)

--
Gitblit v1.9.3