From 58555b03b9767de8457a4b1aadc67f491be939bb Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Tue, 3 Aug 2021 16:59:37 +0800 Subject: [PATCH] modify host --- src/api/index.js | 9 ++++----- src/layouts/header/index.vue | 2 +- src/setting.js | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index 7730bf4..6746676 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -1,8 +1,7 @@ import Setting from '@/setting'; let host = Setting.apiBaseURL -// let host = 'http://192.168.31.117'//宁本地 -// let host = 'http://192.168.31.137:8001'//陈本地 +let uploadURL = 'http://112.74.110.92:8001' export default { logins: `${host}/management/userInfo/login`, //登录  @@ -12,7 +11,7 @@ export default { queryCity: `${host}/enterprise/city/queryCity`, queryClient: `${host}/enterprise/client/list`, - uploadUserAvatars: `http://www.liuwanr.cn/liuwanr/user/uploadUserAvatars`, + uploadUserAvatars: `${uploadURL}/oss/manage/fileupload`, userinfoUpdate:`${host}/management/userInfo/update`,//个人中心信息修改 userinfo:`${host}/management/userInfo/getUserInfo`,//个人中心信息展示 getAccount:`${host}/management/userInfo/getAccount`,//账号判重 @@ -26,7 +25,7 @@ export default { studentGetWorkNumber: `${host}/management/student/getWorkNumber`, exportFailureStudent: `${host}/management/student/exportFailure`, uploadFileStudent: `${host}/management/student/uploadFile`, - downloadStudentTemp: 'http://liuwanr.oss-cn-shenzhen.aliyuncs.com/xlsx/20201102/1604658660956.xlsx', + downloadStudentTemp: 'http://szks.supergen-edu.com/template/1604658660956.xlsx', // 一级部门 addStaffPro: `${host}/management/staffProfessionalArchitecture/addStaffProfessionalArchitecture`, @@ -51,7 +50,7 @@ export default { getWorkNumber: `${host}/management/staff/getWorkNumber`, exportFailureStaff: `${host}/management/staff/managementExportFailure`, uploadFileStaff: `${host}/management/staff/managementUpload`, - downloadStaffTemp: `https://cj-oss.oss-cn-guangzhou.aliyuncs.com/20210208/xlsx/1358714535309500416.xlsx`, + downloadStaffTemp: `http://szks.supergen-edu.com/template/1358714535309500416.xlsx`, // 角色管理 getRole: `${host}/management/role/get`, diff --git a/src/layouts/header/index.vue b/src/layouts/header/index.vue index dba809d..766f9a2 100644 --- a/src/layouts/header/index.vue +++ b/src/layouts/header/index.vue @@ -60,7 +60,7 @@ export default { console.log(command) if(command == 'help'){ this.pdfVisible = true - this.pdfSrc = 'https://huoran.oss-cn-shenzhen.aliyuncs.com/20201125/pdf/1331503132932857856.pdf' + this.pdfSrc = 'http://szks.supergen-edu.com/template/1331503132932857856.pdf' }else if(command == 'person'){ this.$router.push('personalCenter') }else{ diff --git a/src/setting.js b/src/setting.js index 7be19b5..3a229bc 100644 --- a/src/setting.js +++ b/src/setting.js @@ -16,7 +16,7 @@ const Setting = { showProgressBar: true, // 接口请求地址 // apiBaseURL: env === 'development' ? 'http://192.168.31.137:8001' : 'http://8.134.8.197:8000', - apiBaseURL: env === 'development' ? 'http://8.134.8.197:8001' : 'http://8.134.8.197:8001', + apiBaseURL: env === 'development' ? 'http://8.134.8.197:8001' : 'http://112.74.110.92:8001', // 接口请求返回错误时,弹窗的持续时间,单位:秒 modalDuration: 3, // 接口请求返回错误时,弹窗的类型,可选值为 Message 或 Notice