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 @@ - + - + - + - + - +