From 445a99947eb57b9b5c7416fc060f579458c660d0 Mon Sep 17 00:00:00 2001 From: zhangherong <571457620@qq.com> Date: 星期四, 10 四月 2025 17:43:39 +0800 Subject: [PATCH] art: https配置开启 --- src/utils/request.js | 2 +- vue.config.js | 7 ++++--- src/config/index.js | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/config/index.js b/src/config/index.js index 1843b2a..5a274be 100644 --- a/src/config/index.js +++ b/src/config/index.js @@ -6,5 +6,5 @@ //鍗曠偣鐧诲綍鍦板潃 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'] = 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 +window._CONFIG['staticDomainURL'] = '/jeecg-boot/sys/common/static' +window._CONFIG['pdfDomainURL'] = '/jeecg-boot/sys/common/pdf/pdfPreviewIframe' \ No newline at end of file diff --git a/src/utils/request.js b/src/utils/request.js index 9092e57..0cc4be1 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -11,7 +11,7 @@ * 鍒欐槧灏勫悗绔煙鍚嶏紝閫氳繃 vue.config.js * @type {*|string} */ -let apiBaseUrl = window._CONFIG['domianURL'] || "/jeecg-boot"; +let apiBaseUrl = "/jeecg-boot"; //console.log("apiBaseUrl= ",apiBaseUrl) // 鍒涘缓 axios 瀹炰緥 const service = axios.create({ diff --git a/vue.config.js b/vue.config.js index 07c53ce..809045b 100644 --- a/vue.config.js +++ b/vue.config.js @@ -87,9 +87,10 @@ devServer: { port: 3000, - open:true, + open: true, + https: true, // hot: true, - // disableHostCheck: true, + disableHostCheck: true, // overlay: { // warnings: false, // errors: true, @@ -109,7 +110,7 @@ /* 娉ㄦ剰锛歫eecgboot鍓嶇鍋氫簡鏀归�狅紝姝ゅ涓嶉渶瑕侀厤缃法鍩熷拰鍚庡彴鎺ュ彛锛堝彧闇�瑕佹敼.env鐩稿叧閰嶇疆鏂囦欢鍗冲彲锛� issues/3462 寰堝浜烘澶勫仛浜嗛厤缃紝瀵艰嚧鍒锋柊鍓嶇404闂锛岃涓�瀹氭敞鎰�*/ '/jeecg-boot': { - target: 'http://localhost:8080', // 璇锋眰鏈湴 闇�瑕乯eecg-boot鍚庡彴椤圭洰 + target: 'https://localhost:9999/', // 璇锋眰鏈湴 闇�瑕乯eecg-boot鍚庡彴椤圭洰 ws: false, changeOrigin: true } -- Gitblit v1.9.3