From 11283507d7a8f98f8aed6bd45b7a84c2a6b146b7 Mon Sep 17 00:00:00 2001
From: zhangherong <571457620@qq.com>
Date: 星期二, 17 六月 2025 08:48:35 +0800
Subject: [PATCH] art: 无法打开jimureport报表问题

---
 src/utils/request.js |    2 +-
 .env.development     |    2 +-
 src/config/index.js  |    6 +++---
 .env.production      |    2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/.env.development b/.env.development
index e0bf3ab..3481c62 100644
--- a/.env.development
+++ b/.env.development
@@ -1,7 +1,7 @@
 NODE_ENV=development
 # VUE_APP_API_BASE_URL=http://192.168.1.118:3000
 # VUE_APP_API_BASE_URL=http://195.0.1.10:6099
-VUE_APP_API_BASE_URL=http://192.168.1.27:9999
+VUE_APP_API_BASE_URL=http://127.0.0.1:9999/jeecg-boot
 # VUE_APP_API_BASE_URL=http://127.0.0.1:9999
 # VUE_APP_API_BASE_URL=http://195.0.1.10:8099
 VUE_APP_CAS_BASE_URL=http://cas.example.org:8443/cas
diff --git a/.env.production b/.env.production
index 870a556..547f8fb 100644
--- a/.env.production
+++ b/.env.production
@@ -2,6 +2,6 @@
 # VUE_APP_API_BASE_URL=http://195.0.1.10:8099
 # VUE_APP_API_BASE_URL=http://195.0.1.10:6099
 # VUE_APP_API_BASE_URL=http://192.168.124.123:9999
-VUE_APP_API_BASE_URL=http://172.16.99.3:6099
+VUE_APP_API_BASE_URL=http://172.16.99.3:6099/jeecg-boot
 VUE_APP_CAS_BASE_URL=http://localhost:8888/cas
 VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview1p
\ No newline at end of file
diff --git a/src/config/index.js b/src/config/index.js
index ad4f310..1843b2a 100644
--- a/src/config/index.js
+++ b/src/config/index.js
@@ -2,9 +2,9 @@
 import Vue from 'vue'
 //璁剧疆鍏ㄥ眬API_BASE_URL
 Vue.prototype.API_BASE_URL = window._CONFIG.VUE_APP_API_BASE_URL?window._CONFIG.VUE_APP_API_BASE_URL:process.env.VUE_APP_API_BASE_URL
-window._CONFIG['domianURL'] = '/jeecg-boot'
+window._CONFIG['domianURL'] = Vue.prototype.API_BASE_URL
 //鍗曠偣鐧诲綍鍦板潃
 window._CONFIG['casPrefixUrl'] = window._CONFIG.VUE_APP_CAS_BASE_URL?window._CONFIG.VUE_APP_CAS_BASE_URL:process.env.VUE_APP_CAS_BASE_URL
 window._CONFIG['onlinePreviewDomainURL'] =  window._CONFIG.VUE_APP_ONLINE_BASE_URL?window._CONFIG.VUE_APP_ONLINE_BASE_URL:process.env.VUE_APP_ONLINE_BASE_URL
-window._CONFIG['staticDomainURL'] = '/jeecg-boot/sys/common/static'
-window._CONFIG['pdfDomainURL'] = '/jeecg-boot/sys/common/pdf/pdfPreviewIframe'
\ No newline at end of file
+window._CONFIG['staticDomainURL'] = Vue.prototype.API_BASE_URL + '/sys/common/static'
+window._CONFIG['pdfDomainURL'] = Vue.prototype.API_BASE_URL+ '/sys/common/pdf/pdfPreviewIframe'
\ No newline at end of file
diff --git a/src/utils/request.js b/src/utils/request.js
index 0cc4be1..9096390 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -11,7 +11,7 @@
  * 鍒欐槧灏勫悗绔煙鍚嶏紝閫氳繃 vue.config.js
  * @type {*|string}
  */
-let apiBaseUrl = "/jeecg-boot";
+let apiBaseUrl =  window._CONFIG['domianURL'] || "/jeecg-boot";
 //console.log("apiBaseUrl= ",apiBaseUrl)
 // 鍒涘缓 axios 瀹炰緥
 const service = axios.create({

--
Gitblit v1.9.3