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 +++++++-
 public/config/config.js                 |    2 +-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/public/config/config.js b/public/config/config.js
index f816a36..083ce28 100644
--- a/public/config/config.js
+++ b/public/config/config.js
@@ -35,7 +35,7 @@
   // sdk璁稿彲
   licenseServer: 'http://' + ipConfig + '/LFServer',
   // 鏈嶅姟鍦板潃
-  baseURL: 'http://183.162.245.49:8888/',
+  // baseURL: 'http://183.162.245.49:8888/',
   //
   positionBtn: [],
 };
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