From 297202512e2961bfb336509ed7979d70b657bd6a Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期二, 12 八月 2025 15:48:47 +0800
Subject: [PATCH] 对接浪潮单点登录调整

---
 src/views/tideLogin.vue |    2 +-
 vue.config.js           |    4 ++--
 src/main.js             |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main.js b/src/main.js
index 5f56508..e3151ec 100644
--- a/src/main.js
+++ b/src/main.js
@@ -64,7 +64,7 @@
 Vue.prototype.HaveJson = (val) => {
   return JSON.parse(JSON.stringify(val));
 };
-Vue.prototype.javaApi = "http://192.168.21.53:8001/lims";
+Vue.prototype.javaApi = "http://10.136.12.71:8009/lims";
 Vue.prototype.checkPermi = checkPermi;
 Vue.prototype.uploadHeader = {
   Authorization: "Bearer " + getToken(),
diff --git a/src/views/tideLogin.vue b/src/views/tideLogin.vue
index 0011bf6..018b96f 100644
--- a/src/views/tideLogin.vue
+++ b/src/views/tideLogin.vue
@@ -13,7 +13,7 @@
   computed: {},
   methods: {
     async goLogin() {
-      store.dispatch('TideLogin', this.$route.query.code).then(() => {
+      store.dispatch('TideLogin', {code:this.$route.query.code}).then(() => {
         this.$router.push({ path: this.redirect || "/" }).catch(() => { });
       })
     }
diff --git a/vue.config.js b/vue.config.js
index 26e5a99..2a45006 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -36,7 +36,7 @@
     proxy: {
       // detail: https://cli.vuejs.org/config/#devserver-proxy
       [process.env.VUE_APP_BASE_API]: {
-        target: `http://localhost:8001`,
+        target: `http://localhost:8009`,
         changeOrigin: true,
         pathRewrite: {
           ["^" + process.env.VUE_APP_BASE_API]: "",
@@ -66,7 +66,7 @@
           use: {
             loader: "worker-loader",
             options: {
-              filename: "[name].[contenthash].worker.js", // 娣诲姞鍐呭鍝堝笇鍒版枃浠跺悕
+              // filename: "[name].[contenthash].worker.js", // 娣诲姞鍐呭鍝堝笇鍒版枃浠跺悕
               inline: "fallback",
             },
           },

--
Gitblit v1.9.3