From 625c64a5f66f4f529df19cf6301a9b376868076d Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Tue, 3 Aug 2021 17:00:06 +0800 Subject: [PATCH] modify host --- src/api/index.js | 4 ++-- src/layouts/header/index.vue | 2 +- src/setting.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index 8711939..4845f2d 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -1,8 +1,8 @@ import Setting from '@/setting'; let host = Setting.apiBaseURL +let uploadURL = 'http://112.74.110.92:8001' let loginhost = 'http://www.liuwanr.cn/liuwanr' -// let host = 'http://192.168.31.117'//宁本地 export default { host, @@ -11,7 +11,7 @@ export default { queryPhone: `${loginhost}/userInfo/queryPhone`, //查询电话是否存在 - uploadUserAvatars: `http://www.liuwanr.cn/liuwanr/user/uploadUserAvatars`, + uploadUserAvatars: `${uploadURL}/oss/manage/fileupload`, queryProvince: `${host}/enterprise/province/queryProvince`, queryCity: `${host}/enterprise/city/queryCity`, queryClient: `${host}/enterprise/client/list`, diff --git a/src/layouts/header/index.vue b/src/layouts/header/index.vue index 597fd60..8216692 100644 --- a/src/layouts/header/index.vue +++ b/src/layouts/header/index.vue @@ -64,7 +64,7 @@ export default { userCommand(command){ if(command == 'help'){ this.pdfVisible = true - this.pdfSrc = 'https://huoran.oss-cn-shenzhen.aliyuncs.com/20201125/pdf/1331504360072962048.pdf' + this.pdfSrc = 'http://szks.supergen-edu.com/template/1331504360072962048.pdf' }else if(command == 'person'){ this.$router.push('personalCenter') }else{ diff --git a/src/setting.js b/src/setting.js index 43341cb..70bb61e 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