From 2cf29f7aa01b38a6d15c81d5ed078df153b31298 Mon Sep 17 00:00:00 2001 From: chenJinxu <2183691628@qq.com> Date: Thu, 21 Mar 2024 11:29:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E6=96=87=E5=AD=97=E5=8A=A0=E8=BD=BD=E4=B8=8D=E4=B8=80=E8=87=B4?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/health/psychological-main/index.vue | 2 +- src/views/health/psychological/index.vue | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/health/psychological-main/index.vue b/src/views/health/psychological-main/index.vue index 560670e..3364ade 100644 --- a/src/views/health/psychological-main/index.vue +++ b/src/views/health/psychological-main/index.vue @@ -159,7 +159,7 @@ export default { // 抑郁指数 { value: data.DepScore, - name: `${anxietyText}指数`, + name: this.$replaceAll(`抑郁指数`, '抑郁', '焦虑'), class: "depression", result: this.$replaceAll(data.DepDesc, '抑郁', '焦虑'), time: data.DepMeasureUpdateTime diff --git a/src/views/health/psychological/index.vue b/src/views/health/psychological/index.vue index 05c8dca..01886fa 100644 --- a/src/views/health/psychological/index.vue +++ b/src/views/health/psychological/index.vue @@ -685,13 +685,13 @@ export default { return this.params.name ? EmotionModel[this.params.name].title1 : '' }, article1() { - return EmotionModel[this.params.name].article1; + return this.params.name ? EmotionModel[this.params.name].article1 : '' }, title2() { - return EmotionModel[this.params.name].title2; + return this.params.name ? EmotionModel[this.params.name].title2 : '' }, article2() { - return EmotionModel[this.params.name].article2; + return this.params.name ? EmotionModel[this.params.name].article2 : '' }, // 当前情绪颜色 currentColor() {