From ca87548250af82f89bf5b4ff45b5d8b3db141cf6 Mon Sep 17 00:00:00 2001 From: binbin_pan Date: Wed, 13 Nov 2024 17:41:00 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AEh5=E4=BA=A7=E7=BA=BF=E7=8E=AF?= =?UTF-8?q?=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.js | 144 +++++++++++++++++++++++------------------------ utils/request.js | 4 +- 2 files changed, 74 insertions(+), 74 deletions(-) diff --git a/config.js b/config.js index 730c376..3a4e9d3 100644 --- a/config.js +++ b/config.js @@ -1,83 +1,33 @@ // 产线 -// module.exports = { -// // http://192.168.0.14:19999 -// loginBaseUrl: 'http://112.29.103.165:1616', -// baseUrl: 'http://112.29.103.165:1616/exam', -// // login: 'http://112.29.103.165:1616', -// login: 'http://112.29.103.165:1616/exam/exam-auth/', -// // 图片展示基础地址 -// fileUrl: 'http://112.29.103.165:1616/exam-file/', -// // 上传文件地址 -// uploadUrl: 'http://112.29.103.165:1616/exam-file/file/uploadBase64', -// bmwUrl: 'http://112.29.103.165:1616/exam-bmw', -// // 体检-基础路径 -// tjBaseUrl: 'http://112.29.103.165:1616/AppPeaManager', -// tjFile: 'http://112.29.103.165:1616/medicalDocumentation/statics/', - -// //实名制移动端-登录接口 -// realLoginUrl: 'http://192.168.0.14:9200/', -// //实名制移动端-移动 -// realAppUrl: 'http://192.168.0.14:1913/app', -// //实名制移动端-安培 -// realExamUrl: 'http://192.168.0.14:1910', -// //实名制移动端-文件 -// realFileUrl: 'http://192.168.0.14:1909/file/', -// //实名制移动端 -// realBmwUrl: 'http://192.168.0.14:1911/bmw', -// //实名制移动端 -- 新 -// realNewBmwUrl: 'http://192.168.0.14:1911', -// //实名制移动端 -- 新 -// realNewYnUrl: 'http://192.168.0.14:1918', - -// // 应用信息 -// appInfo: { -// // 应用名称 -// name: '作业管控智慧平台', -// // 应用版本 -// version: '1.1.0' -// } -// } -// 测试环境 module.exports = { - // baseUrl:'/prod-api', // http://192.168.0.14:19999 - // loginBaseUrl: 'http://112.29.103.165:1616', - loginBaseUrl: 'http://192.168.0.14:27018', - // loginBaseUrl:'http://192.168.0.14:19999', - // baseUrl:'http://192.168.0.14:2900', - baseUrl: 'http://192.168.0.14:19999', - // loginUrl: 'http://112.29.103.165:1616', - login: 'http://192.168.0.14:19200', + loginBaseUrl: 'http://112.29.103.165:1616', + baseUrl: 'http://112.29.103.165:1616/exam', + // login: 'http://112.29.103.165:1616', + login: 'http://112.29.103.165:1616/exam/exam-auth/', // 图片展示基础地址 - fileUrl: 'http://192.168.0.14:19999/exam-file/', + fileUrl: 'http://112.29.103.165:1616/exam-file/', // 上传文件地址 - uploadUrl: 'http://192.168.0.14:19999/exam-file/file/uploadBase64', - bmwUrl: 'http://192.168.0.14:19999/exam-bmw', + uploadUrl: 'http://112.29.103.165:1616/exam-file/file/uploadBase64', + bmwUrl: 'http://112.29.103.165:1616/exam-bmw', // 体检-基础路径 - tjBaseUrl: 'http://192.168.0.14:18077/AppPeaManager', - // tjBaseUrl: 'http://192.168.2.91:19100/AppPeaManager', - tjFile: 'http://192.168.0.14:18077/medicalDocumentation/statics/', + tjBaseUrl: 'http://112.29.103.165:1616/AppPeaManager', + tjFile: 'http://112.29.103.165:1616/medicalDocumentation/statics/', //实名制移动端-登录接口 - realLoginUrl: 'http://192.168.0.14:1616/auth/', - realBaseUrl: 'http://192.168.0.14:1910/', - //实名制移动端-移动 - realAppUrl: 'http://192.168.0.14:1913/app', - //实名制移动端-安培 - realExamUrl: 'http://192.168.0.14:1616/system', - //实名制移动端-文件 - realFileUrl: 'http://192.168.0.14:1909/file/', - //实名制移动端 - realBmwUrl: 'http://192.168.0.14:1616/bmw', - //实名制移动端 -- 新 - realNewBmwUrl: 'http://192.168.0.14:1616', - loginUrl: 'http://192.168.0.14:27018', - //实名制移动端 -- 新 - realNewYnUrl: 'http://192.168.0.14:1918', - realIdCardUrl: 'http://192.168.0.14:26699', - - //作业计划 -- 新 - workPlanNewYnUrl: 'http://192.168.0.14:19191', + // realLoginUrl: 'http://192.168.0.14:9200/', + // //实名制移动端-移动 + // realAppUrl: 'http://192.168.0.14:1913/app', + // //实名制移动端-安培 + // realExamUrl: 'http://192.168.0.14:1910', + // //实名制移动端-文件 + // realFileUrl: 'http://192.168.0.14:1909/file/', + // //实名制移动端 + // realBmwUrl: 'http://192.168.0.14:1911/bmw', + // //实名制移动端 -- 新 + // realNewBmwUrl: 'http://192.168.0.14:1911', + // //实名制移动端 -- 新 + // realNewYnUrl: 'http://192.168.0.14:1918', // 应用信息 appInfo: { @@ -87,3 +37,53 @@ module.exports = { version: '1.1.0' } } +// 测试环境 +// module.exports = { +// // baseUrl:'/prod-api', +// // http://192.168.0.14:19999 +// // loginBaseUrl: 'http://112.29.103.165:1616', +// loginBaseUrl: 'http://192.168.0.14:27018', +// // loginBaseUrl:'http://192.168.0.14:19999', +// // baseUrl:'http://192.168.0.14:2900', +// baseUrl: 'http://192.168.0.14:19999', +// // loginUrl: 'http://112.29.103.165:1616', +// login: 'http://192.168.0.14:19200', +// // 图片展示基础地址 +// fileUrl: 'http://192.168.0.14:19999/exam-file/', +// // 上传文件地址 +// uploadUrl: 'http://192.168.0.14:19999/exam-file/file/uploadBase64', +// bmwUrl: 'http://192.168.0.14:19999/exam-bmw', +// // 体检-基础路径 +// tjBaseUrl: 'http://192.168.0.14:18077/AppPeaManager', +// // tjBaseUrl: 'http://192.168.2.91:19100/AppPeaManager', +// tjFile: 'http://192.168.0.14:18077/medicalDocumentation/statics/', + +// //实名制移动端-登录接口 +// realLoginUrl: 'http://192.168.0.14:1616/auth/', +// realBaseUrl: 'http://192.168.0.14:1910/', +// //实名制移动端-移动 +// realAppUrl: 'http://192.168.0.14:1913/app', +// //实名制移动端-安培 +// realExamUrl: 'http://192.168.0.14:1616/system', +// //实名制移动端-文件 +// realFileUrl: 'http://192.168.0.14:1909/file/', +// //实名制移动端 +// realBmwUrl: 'http://192.168.0.14:1616/bmw', +// //实名制移动端 -- 新 +// realNewBmwUrl: 'http://192.168.0.14:1616', +// loginUrl: 'http://192.168.0.14:27018', +// //实名制移动端 -- 新 +// realNewYnUrl: 'http://192.168.0.14:1918', +// realIdCardUrl: 'http://192.168.0.14:26699', + +// //作业计划 -- 新 +// workPlanNewYnUrl: 'http://192.168.0.14:19191', + +// // 应用信息 +// appInfo: { +// // 应用名称 +// name: '作业管控智慧平台', +// // 应用版本 +// version: '1.1.0' +// } +// } diff --git a/utils/request.js b/utils/request.js index be377dc..2ae5c19 100644 --- a/utils/request.js +++ b/utils/request.js @@ -5,8 +5,8 @@ import errorCode from '@/utils/errorCode' import { toast, showConfirm, tansParams } from '@/utils/common' let timeout = 60000 -// const baseUrl = config.loginBaseUrl -const baseUrl = config.loginUrl +const baseUrl = config.loginBaseUrl +// const baseUrl = config.loginUrl console.log('baseUrl-请求', baseUrl) const request = config => {