From 73f73337b4cf90159e0e1317ae9d5df5ecbbb489 Mon Sep 17 00:00:00 2001 From: TiaStars Date: Fri, 3 Jan 2025 14:23:43 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E7=BD=B2=E5=9C=B0=E5=9D=80=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E6=AD=A3=E5=BC=8F=E7=8E=AF=E5=A2=83=E3=80=81=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BA=93=E7=B1=BB=E5=9E=8Bbugfix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 4 ++-- src/utils/request.js | 4 ++-- src/views/auditPages/assetsManagement/email.vue | 4 ++-- src/views/auditPages/assetsManagement/index.vue | 4 ++-- .../auditPages/assetsManagement/mobileApplication.vue | 4 ++-- src/views/auditPages/assetsManagement/officialAccount.vue | 4 ++-- src/views/auditPages/assetsManagement/program.vue | 4 ++-- src/views/auditPages/taskManagement/audit copy.vue | 2 +- src/views/auditPages/unitAutonomicFill/index.vue | 2 +- src/views/components/assetsType/index.vue | 2 +- src/views/components/myAssetsType/index.vue | 2 +- src/views/components/myUpload/index.vue | 8 ++++---- src/views/components/renwuType/webType1.vue | 2 +- src/views/components/renwuType/webType2DW.vue | 2 +- src/views/unitPages/myTask/audit copy.vue | 2 +- vue.config.js | 4 ++-- 16 files changed, 27 insertions(+), 27 deletions(-) diff --git a/.env.production b/.env.production index ffd1313..f542820 100644 --- a/.env.production +++ b/.env.production @@ -5,5 +5,5 @@ VUE_APP_TITLE = 太仓市网络和数据资产采集管理系统 ENV = 'production' # 若依管理系统/生产环境 -VUE_APP_BASE_API = 'http://39.101.188.84:9115' -# VUE_APP_BASE_API = 'http://20.1.0.164/api' +# VUE_APP_BASE_API = 'http://39.101.188.84:9115' +VUE_APP_BASE_API = 'http://20.1.0.164/api' diff --git a/src/utils/request.js b/src/utils/request.js index 827b69c..b286e75 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -15,8 +15,8 @@ axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8' // 创建axios实例 const service = axios.create({ // axios中请求配置有baseURL选项,表示请求URL公共部分 - baseURL: process.env.VUE_APP_BASE_API, - // baseURL: process.env.NODE_ENV === "production" ? location.origin + '/api' : process.env.VUE_APP_BASE_API, + // baseURL: process.env.VUE_APP_BASE_API, + baseURL: process.env.NODE_ENV === "production" ? location.origin + '/api' : process.env.VUE_APP_BASE_API, // 超时 timeout: 50000 }) diff --git a/src/views/auditPages/assetsManagement/email.vue b/src/views/auditPages/assetsManagement/email.vue index b6be177..5eaa5d2 100644 --- a/src/views/auditPages/assetsManagement/email.vue +++ b/src/views/auditPages/assetsManagement/email.vue @@ -239,8 +239,8 @@ export default { // 设置上传的请求头部 headers: { Authorization: "Bearer " + getToken() }, // 上传的地址 - url: process.env.VUE_APP_BASE_API + "/tc/assetEmail/importData" - // url: location.origin + "/api/tc/assetEmail/importData" + // url: process.env.VUE_APP_BASE_API + "/tc/assetEmail/importData" + url: location.origin + "/api/tc/assetEmail/importData" }, } }, diff --git a/src/views/auditPages/assetsManagement/index.vue b/src/views/auditPages/assetsManagement/index.vue index 69fce46..54b3962 100644 --- a/src/views/auditPages/assetsManagement/index.vue +++ b/src/views/auditPages/assetsManagement/index.vue @@ -258,8 +258,8 @@ export default { // 设置上传的请求头部 headers: { Authorization: "Bearer " + getToken() }, // 上传的地址 - url: process.env.VUE_APP_BASE_API + "/tc/assetCurrent/import" - // url: location.origin + "/api/tc/assetCurrent/importData" + // url: process.env.VUE_APP_BASE_API + "/tc/assetCurrent/import" + url: location.origin + "/api/tc/assetCurrent/importData" }, } }, diff --git a/src/views/auditPages/assetsManagement/mobileApplication.vue b/src/views/auditPages/assetsManagement/mobileApplication.vue index 1cd4715..be5ce90 100644 --- a/src/views/auditPages/assetsManagement/mobileApplication.vue +++ b/src/views/auditPages/assetsManagement/mobileApplication.vue @@ -265,8 +265,8 @@ export default { // 设置上传的请求头部 headers: { Authorization: "Bearer " + getToken() }, // 上传的地址 - url: process.env.VUE_APP_BASE_API + "/tc/assetApp/importData" - // url: location.origin + "/api/tc/assetApp/importData" + // url: process.env.VUE_APP_BASE_API + "/tc/assetApp/importData" + url: location.origin + "/api/tc/assetApp/importData" }, } }, diff --git a/src/views/auditPages/assetsManagement/officialAccount.vue b/src/views/auditPages/assetsManagement/officialAccount.vue index 9afc76e..35ee3c9 100644 --- a/src/views/auditPages/assetsManagement/officialAccount.vue +++ b/src/views/auditPages/assetsManagement/officialAccount.vue @@ -251,8 +251,8 @@ export default { // 设置上传的请求头部 headers: { Authorization: "Bearer " + getToken() }, // 上传的地址 - url: process.env.VUE_APP_BASE_API + "/tc/assetOfficialAccount/importData" - // url: location.origin + "/api/tc/assetOfficialAccount/importData" + // url: process.env.VUE_APP_BASE_API + "/tc/assetOfficialAccount/importData" + url: location.origin + "/api/tc/assetOfficialAccount/importData" }, } }, diff --git a/src/views/auditPages/assetsManagement/program.vue b/src/views/auditPages/assetsManagement/program.vue index 1d0630f..df2075b 100644 --- a/src/views/auditPages/assetsManagement/program.vue +++ b/src/views/auditPages/assetsManagement/program.vue @@ -250,8 +250,8 @@ export default { // 设置上传的请求头部 headers: { Authorization: "Bearer " + getToken() }, // 上传的地址 - url: process.env.VUE_APP_BASE_API + "/tc/miniPrograms/importData" - // url: location.origin + "/api/tc/miniPrograms/importData" + // url: process.env.VUE_APP_BASE_API + "/tc/miniPrograms/importData" + url: location.origin + "/api/tc/miniPrograms/importData" }, } }, diff --git a/src/views/auditPages/taskManagement/audit copy.vue b/src/views/auditPages/taskManagement/audit copy.vue index 3c83191..006b96e 100644 --- a/src/views/auditPages/taskManagement/audit copy.vue +++ b/src/views/auditPages/taskManagement/audit copy.vue @@ -2533,7 +2533,7 @@ - + 查看 -
审批 diff --git a/src/views/components/assetsType/index.vue b/src/views/components/assetsType/index.vue index bb9fd74..61e89ef 100644 --- a/src/views/components/assetsType/index.vue +++ b/src/views/components/assetsType/index.vue @@ -2614,7 +2614,7 @@ - + - + - + - + - +