From 861d9e4798206bf0793b2ec12b24e75146c6dbd9 Mon Sep 17 00:00:00 2001
From: wx <645899409@qq.com>
Date: Thu, 28 Dec 2023 17:13:29 +0800
Subject: [PATCH] =?UTF-8?q?update=201.=E7=9D=A1=E7=9C=A0=E5=9B=BE=E6=A0=87?=
=?UTF-8?q?=E7=BC=BA=E5=A4=B1=E5=AD=97=E6=AE=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../secondMap/components/userInfoModal/sleep.vue | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/src/components/secondaryScreen/secondMap/components/userInfoModal/sleep.vue b/src/components/secondaryScreen/secondMap/components/userInfoModal/sleep.vue
index 19377a9..47540f2 100644
--- a/src/components/secondaryScreen/secondMap/components/userInfoModal/sleep.vue
+++ b/src/components/secondaryScreen/secondMap/components/userInfoModal/sleep.vue
@@ -153,9 +153,18 @@
let tar = params[0];
let str = '';
if (type.value === 1) {
- str = tar1.value > 0 ? '深睡' : '浅睡';
+ str = xArr[tar.dataIndex] + '
' + (tar1.value > 0 ? '浅睡' : '深睡');
} else {
- str = '深睡' + ' : ' + (tar.value ? tar.value : 0) + '
' + '浅睡' + ' : ' + (tar1.value ? tar1.value : 0);
+ str =
+ xArr[tar.dataIndex] +
+ '
' +
+ '深睡' +
+ ' : ' +
+ (tar.value ? tar.value : 0) +
+ '
' +
+ '浅睡' +
+ ' : ' +
+ (tar1.value ? tar1.value : 0);
}
return str;
},