From 3d8cef7823da836d2af9ce4bd5b3f8a18166afdd Mon Sep 17 00:00:00 2001 From: chenJinxu <2183691628@qq.com> Date: Mon, 29 Apr 2024 17:52:43 +0800 Subject: [PATCH] update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - ‘忧郁’文字 改成‘抑郁’, --- README.md | 7 +++++++ src/config/models.js | 4 ++-- src/utils/index.js | 9 +++++---- src/views/health/psychological/report/index.vue | 4 ++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index f79943b..afd41da 100644 --- a/README.md +++ b/README.md @@ -1138,3 +1138,10 @@ update fix - 修复 抑郁没有正确转化成忧郁的问题 + +## v1.0.123 + +`2024.4.29` +update + +- ‘忧郁’文字 改成‘抑郁’, diff --git a/src/config/models.js b/src/config/models.js index 82dbee7..316d282 100644 --- a/src/config/models.js +++ b/src/config/models.js @@ -8,7 +8,7 @@ import store from "@/store"; // 情绪模型 const appTypeList = ['1']; -export const VERSION_MODEL = '1.0.122F'; //版本号 +export const VERSION_MODEL = '1.0.123F'; //版本号 export const IMAGE_URL = { production: 'http://zfb.ssjlai.com/web/', test: 'http://zfb.ssjlai.com/web/', @@ -29,7 +29,7 @@ export const BaiduStatisticsModel = { }; // 焦虑文字 -export const anxietyText = appTypeList.indexOf(store.getters.appType) >-1 ? `忧郁`: `抑郁` +export const anxietyText = '抑郁'/* appTypeList.indexOf(store.getters.appType) >-1 ? `忧郁`: `抑郁` */ export const EmotionModel = { // 抑郁 depression: { diff --git a/src/utils/index.js b/src/utils/index.js index 0666ba1..43f221a 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -100,9 +100,10 @@ export function isShowAntpay(array) { */ export function replaceAll(target, searchValue, replacement) { // 应用类型,目前1 是健康好蕴,其他则不替换 - const appTypeList = ['1']; - const appType = store.getters.appType; - if(appTypeList.indexOf(appType) > -1) { + /* const appTypeList = ['1']; + const appType = store.getters.appType; */ + return target + /* if(appTypeList.indexOf(appType) > -1) { if(isNotNull(target) && isNotNull(searchValue)) { if(target.includes(searchValue)) { return target.replace(new RegExp(searchValue, 'g'), replacement); @@ -116,6 +117,6 @@ export function replaceAll(target, searchValue, replacement) { } else { return target - } + } */ } \ No newline at end of file diff --git a/src/views/health/psychological/report/index.vue b/src/views/health/psychological/report/index.vue index 9a54cfb..790ed1a 100644 --- a/src/views/health/psychological/report/index.vue +++ b/src/views/health/psychological/report/index.vue @@ -283,7 +283,7 @@ export default { }, computed: { isShowLeft() { - return this.params.isShowLeft ? this.params.isShowLeft === 'true' : false + return this.params.isShowLeft || this.params.isShowLeft === 'true' }, // 折线图标题 echartsTitle() { @@ -585,7 +585,7 @@ export default { async loadParams() { let params = this.$route.query; if (params) { - this.params = params; + this.params = { ...params }; if (params.appType) { this.$store.commit("appType", params.appType); }