From 3f7f1877aefa7622181ffb6b4175d1f2e4956201 Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Thu, 26 Dec 2024 14:45:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AF=B7=E6=B1=82=E5=90=8E?= =?UTF-8?q?=E7=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/index.js | 10 +++++----- src/utils/httpRequest.js | 14 +++++++------- src/views/common/login.vue | 4 ++-- src/views/sysmission/missionAdd.vue | 2 +- src/views/sysmission/missionRedact.vue | 2 +- src/views/user/userDetail.vue | 2 +- src/views/user/userDetail1.vue | 2 +- static/config/index-prod.js | 2 +- 8 files changed, 19 insertions(+), 19 deletions(-) diff --git a/config/index.js b/config/index.js index acf56f6..1435a68 100644 --- a/config/index.js +++ b/config/index.js @@ -13,13 +13,13 @@ module.exports = { assetsPublicPath: '/', // 代理列表, 是否开启代理通过[./dev.env.js]配置 proxyTable: devEnv.OPEN_PROXY === false ? {} : { - '/sqx_fast': { - // target: 'http://192.168.0.132:8184/sqx_fast/', - // target: 'https://duanjudl.xianmxkj.com/sqx_fast/', - target: 'http://127.0.0.1/sqx_fast/', + '/czg': { + // target: 'http://192.168.0.132:8184/czg/', + // target: 'https://duanjudl.xianmxkj.com/czg/', + target: 'http://127.0.0.1/czg/', changeOrigin: true, pathRewrite: { - '^/sqx_fast': '' + '^/czg': '' } }, }, diff --git a/src/utils/httpRequest.js b/src/utils/httpRequest.js index 7e3b105..bc9a0a3 100644 --- a/src/utils/httpRequest.js +++ b/src/utils/httpRequest.js @@ -13,9 +13,9 @@ const http = axios.create({ } }) -// const requestURl = "http://localhost:8100/sqx_fast/"; -const requestURl = "https://video.hnsiyao.cn/sqx_fast/"; -// const requestURl = "https://dj-api.hnsiyao.cn/sqx_fast/"; +// const requestURl = "http://localhost:8100/czg/"; +const requestURl = "https://video.hnsiyao.cn/czg/"; +// const requestURl = "https://dj-api.hnsiyao.cn/czg/"; /** * 请求拦截 @@ -48,8 +48,8 @@ http.interceptors.response.use(response => { http.adornUrl = (actionName) => { // 非生产环境 && 开启代理, 接口前缀统一使用[/proxyApi/]前缀做代理拦截! // return (process.env.NODE_ENV !== 'production' && process.env.OPEN_PROXY ? '/proxyApi/' : window.SITE_CONFIG.baseUrl) + actionName - // return 'http://192.168.0.132:8184/sqx_fast/' + actionName - // return 'https://duanjudl.xianmxkj.co/sqx_fast/' + actionName + // return 'http://192.168.0.132:8184/czg/' + actionName + // return 'https://duanjudl.xianmxkj.co/czg/' + actionName actionName = actionName.replace(/^\//, ""); return requestURl + actionName @@ -57,8 +57,8 @@ http.adornUrl = (actionName) => { http.adornUrlUp = (actionName) => { // 非生产环境 && 开启代理, 接口前缀统一使用[/proxyApi/]前缀做代理拦截! // 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://duanjudl.xianmxkj.co/sqx_fast/' + actionName + // return 'http://192.168.0.132:8183/czg/' + actionName + // return 'https://duanjudl.xianmxkj.co/czg/' + actionName actionName = actionName.replace(/^\//, ""); return requestURl + actionName diff --git a/src/views/common/login.vue b/src/views/common/login.vue index 077cde4..c5bcf4c 100644 --- a/src/views/common/login.vue +++ b/src/views/common/login.vue @@ -86,7 +86,7 @@ >登录 -