From f4860d90e8f5cfa53f6e47af732c30fb7eb4e612 Mon Sep 17 00:00:00 2001 From: GYJ <1157756119@qq.com> Date: Tue, 3 Dec 2024 15:51:48 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BD=91=E7=BB=9C=E8=AF=B7=E6=B1=82=E5=8F=8C?= =?UTF-8?q?=E6=96=9C=E6=9D=A0=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/index.js | 1 + src/utils/httpRequest.js | 3 +++ 2 files changed, 4 insertions(+) diff --git a/config/index.js b/config/index.js index d9ce5f1..2678a82 100644 --- a/config/index.js +++ b/config/index.js @@ -70,6 +70,7 @@ module.exports = { }, build: { + // publicPath: '/admin/', // Template for index.html index: path.resolve(__dirname, '../dist/index.html'), diff --git a/src/utils/httpRequest.js b/src/utils/httpRequest.js index 7182114..c7d863d 100644 --- a/src/utils/httpRequest.js +++ b/src/utils/httpRequest.js @@ -45,6 +45,7 @@ http.adornUrl = (actionName) => { // return (process.env.NODE_ENV !== 'production' && process.env.OPEN_PROXY ? '/proxyApi/' : window.SITE_CONFIG.baseUrl) + actionName // return 'http://192.168.0.132:8100/sqx_fast/' + actionName // return 'https://duanjuadmin.xianmxkj.com/sqx_fast/' + actionName + actionName = actionName.replace(/^\//, ""); return 'https://video.hnsiyao.cn/sqx_fast/' + actionName } @@ -53,12 +54,14 @@ http.adornUrlUp = (actionName) => { // return (process.env.NODE_ENV !== 'production' && process.env.OPEN_PROXY ? '/proxyApi/' : window.SITE_CONFIG.baseUrl) + actionName // return 'http://192.168.0.132:8183/sqx_fast/' + actionName // return 'https://duanjuadmin.xianmxkj.com/sqx_fast/' + actionName + actionName = actionName.replace(/^\//, ""); return 'https://video.hnsiyao.cn/sqx_fast/' + actionName } http.adornUrlWX = (actionName) => { // 非生产环境 && 开启代理, 接口前缀统一使用[/proxyApi/]前缀做代理拦截! // return (process.env.NODE_ENV !== 'production' && process.env.OPEN_PROXY ? '/proxyApi/' : window.SITE_CONFIG.baseUrl) + actionName + actionName = actionName.replace(/^\//, ""); return '/weixin/' + actionName // return 'https://api.weixin.qq.com/' + actionName // return 'https://video.hnsiyao.cn/sqx_fast/' + actionName