modify host

master
yujialong 3 years ago
parent 451979f855
commit 0f75d2984f
  1. 9
      src/api/index.js
  2. 2
      src/layouts/header/index.vue
  3. 2
      src/setting.js

@ -1,8 +1,7 @@
import Setting from '@/setting'; import Setting from '@/setting';
let host = Setting.apiBaseURL let host = Setting.apiBaseURL
// let host = 'http://192.168.31.117'//宁本地 let uploadURL = 'http://112.74.110.92:8001'
// let host = 'http://192.168.31.137:8001'//陈本地
export default { export default {
logins: `${host}/management/userInfo/login`, //登录  logins: `${host}/management/userInfo/login`, //登录 
@ -12,7 +11,7 @@ export default {
queryProvince: `${host}/enterprise/province/queryProvince`, queryProvince: `${host}/enterprise/province/queryProvince`,
// 个人中心 // 个人中心
uploadUserAvatars: `http://www.liuwanr.cn/liuwanr/user/uploadUserAvatars`, uploadUserAvatars: `${uploadURL}/oss/manage/fileupload`,
userinfoUpdate:`${host}/management/userInfo/update`,//个人中心信息修改 userinfoUpdate:`${host}/management/userInfo/update`,//个人中心信息修改
userinfo:`${host}/management/userInfo/getUserInfo`,//个人中心信息展示 userinfo:`${host}/management/userInfo/getUserInfo`,//个人中心信息展示
getAccount:`${host}/management/userInfo/getAccount`,//账号判重 getAccount:`${host}/management/userInfo/getAccount`,//账号判重
@ -47,7 +46,7 @@ export default {
updateStaff: `${host}/management/staff/updateStaff`, updateStaff: `${host}/management/staff/updateStaff`,
exportFailureStaff: `${host}/management/staff/exportFailure`, exportFailureStaff: `${host}/management/staff/exportFailure`,
uploadFileStaff: `${host}/management/staff/uploadFile`, uploadFileStaff: `${host}/management/staff/uploadFile`,
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`, getRole: `${host}/management/role/get`,
@ -76,7 +75,7 @@ export default {
updateUser: `${host}/enterprise/user/updateUser`, updateUser: `${host}/enterprise/user/updateUser`,
uploadFileUser: `${host}/enterprise/user/uploadFile`, uploadFileUser: `${host}/enterprise/user/uploadFile`,
exportFailureUser: `${host}/enterprise/user/exportFailure`, exportFailureUser: `${host}/enterprise/user/exportFailure`,
downloadUserTemp: 'https://cj-oss.oss-cn-guangzhou.aliyuncs.com/20210310/xlsx/1369497713188036608.xlsx', downloadUserTemp: 'http://szks.supergen-edu.com/template/1369497713188036608.xlsx',
addApplicant: `${host}/enterprise/match/applicant/addApplicant`, addApplicant: `${host}/enterprise/match/applicant/addApplicant`,
disableContests: `${host}/enterprise/match/applicant/disableContests`, disableContests: `${host}/enterprise/match/applicant/disableContests`,

@ -60,7 +60,7 @@ export default {
console.log(command) console.log(command)
if(command == 'help'){ if(command == 'help'){
this.pdfVisible = true this.pdfVisible = true
this.pdfSrc = 'https://huoran.oss-cn-shenzhen.aliyuncs.com/20201125/pdf/1331502965949227008.pdf' this.pdfSrc = 'http://szks.supergen-edu.com/template/1331502965949227008.pdf'
}else if(command == 'person'){ }else if(command == 'person'){
this.$router.push('personalCenter') this.$router.push('personalCenter')
}else{ }else{

@ -16,7 +16,7 @@ const Setting = {
showProgressBar: true, showProgressBar: true,
// 接口请求地址 // 接口请求地址
// apiBaseURL: env === 'development' ? 'http://192.168.31.137:8001' : 'http://8.134.8.197:8000', // 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, modalDuration: 3,
// 接口请求返回错误时,弹窗的类型,可选值为 Message 或 Notice // 接口请求返回错误时,弹窗的类型,可选值为 Message 或 Notice

Loading…
Cancel
Save