diff --git a/README.md b/README.md index d0b36da..31b5ffb 100644 --- a/README.md +++ b/README.md @@ -837,3 +837,9 @@ fix update - 心理监测首页 - 修改 菜单顺序 + +## v1.0.105 +`2023.12.5` +update +- 心理监测首页 + - 区分 测试和正式环境接口地址 diff --git a/src/config/models.js b/src/config/models.js index 997267c..d88e5af 100644 --- a/src/config/models.js +++ b/src/config/models.js @@ -5,7 +5,7 @@ * @FilePath: \TelpoH5FrontendWeb\src\config\models.js * @description: */ -export const VERSION_MODEL = '1.0.104F'; //版本号 +export const VERSION_MODEL = '1.0.105F'; //版本号 export const IMAGE_URL = { production: 'http://zfb.ssjlai.com/web/', test: 'http://zfb.ssjlai.com/web/', diff --git a/src/views/health/psychological/index.vue b/src/views/health/psychological/index.vue index af422bb..a7d08e1 100644 --- a/src/views/health/psychological/index.vue +++ b/src/views/health/psychological/index.vue @@ -1306,7 +1306,8 @@ export default { }, getWeekResult() { this.$toast.loading('数据加载中'); - let reqUrl = 'https://dbmq.rzliot.com/heart/api/Data/GetWeekResult'; + let baseUrl = process.env.NODE_ENV === 'production' ? 'https://dbmq.rzliot.com/auth_heart' : 'https://dbmq.rzliot.com/heart'; + let reqUrl = `${baseUrl}/api/Data/GetWeekResult`; let reqParams = { uid: this.uid/* '2023101521270090082 */, type: this.emoType diff --git a/src/views/health/psychological/report/index.vue b/src/views/health/psychological/report/index.vue index 45f6fb2..ec7ce43 100644 --- a/src/views/health/psychological/report/index.vue +++ b/src/views/health/psychological/report/index.vue @@ -632,7 +632,8 @@ export default { }, getWeekResultDetail() { this.$toast.loading('数据加载中'); - let reqUrl = 'https://dbmq.rzliot.com/heart/api/Data/GetWeekResultDetail'; + let baseUrl = process.env.NODE_ENV === 'production' ? 'https://dbmq.rzliot.com/auth_heart' : 'https://dbmq.rzliot.com/heart'; + let reqUrl = `${baseUrl}/api/Data/GetWeekResultDetail`; let reqParams = { recordId: this.params.recordId, }; diff --git a/src/views/health/psychological/report/report-entry.vue b/src/views/health/psychological/report/report-entry.vue index c383915..e84b579 100644 --- a/src/views/health/psychological/report/report-entry.vue +++ b/src/views/health/psychological/report/report-entry.vue @@ -94,7 +94,8 @@ export default { }, getWeekResult() { this.$toast.loading('数据加载中'); - let reqUrl = 'https://dbmq.rzliot.com/heart/api/Data/GetWeekResult'; + let baseUrl = process.env.NODE_ENV === 'production' ? 'https://dbmq.rzliot.com/auth_heart' : 'https://dbmq.rzliot.com/heart'; + let reqUrl = `${baseUrl}/api/Data/GetWeekResult`; let reqParams = { uid: /* this.uid */'2023101521270090082', type: this.emoType