From 4107ecb2d011af2782c72d913ee2944964e55301 Mon Sep 17 00:00:00 2001 From: mashitao2 Date: Wed, 30 Nov 2022 16:19:31 +0800 Subject: [PATCH] =?UTF-8?q?Issue:#I63XQM:list=E6=BB=9A=E5=8A=A8=E5=87=BA?= =?UTF-8?q?=E7=8E=B0crash=20Description:=20The=20list=20scrolls=20to=20cra?= =?UTF-8?q?sh=20Sig:=20SIG=5FNotes=20Feature=20or=20Bugfix:=20Bugfix=20Bin?= =?UTF-8?q?ary=20Source:=20No=20Signed-off-by:=20mashitao2=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- features/src/main/ets/components/FolderListComp.ets | 4 ++-- features/src/main/ets/components/NoteListComp.ets | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/features/src/main/ets/components/FolderListComp.ets b/features/src/main/ets/components/FolderListComp.ets index 6f5ea48..e426cb6 100644 --- a/features/src/main/ets/components/FolderListComp.ets +++ b/features/src/main/ets/components/FolderListComp.ets @@ -384,7 +384,7 @@ struct FolderItemComp { .textOverflow({ overflow: TextOverflow.Ellipsis }) .flexShrink(1) .fontColor(FolderUtil.getFolderTextColor(this.selectedFolderData.uuid == this.folderItem.uuid)) - Text(this.refreshFlag.toString()) + Text(JSON.stringify(this.refreshFlag)) .visibility(Visibility.None) // 用于强制刷新使用 }.width(118) @@ -445,7 +445,7 @@ struct FolderItemComp { .textOverflow({ overflow: TextOverflow.Ellipsis }) .flexShrink(1) .fontColor(FolderUtil.getFolderTextColor(this.selectedFolderData.uuid == this.folderItem.uuid)) - Text(this.refreshFlag.toString()) + Text(JSON.stringify(this.refreshFlag)) .visibility(Visibility.None) // 用于强制刷新使用 }.width(118) diff --git a/features/src/main/ets/components/NoteListComp.ets b/features/src/main/ets/components/NoteListComp.ets index ec96c60..2921bc7 100644 --- a/features/src/main/ets/components/NoteListComp.ets +++ b/features/src/main/ets/components/NoteListComp.ets @@ -226,7 +226,7 @@ export struct NoteItemComp { build() { Flex({ justifyContent: FlexAlign.SpaceBetween, alignItems: ItemAlign.Center }) { Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { - Text(this.refreshFlag.toString()).visibility(Visibility.None) // 用于强制刷新使用 + Text(JSON.stringify(this.refreshFlag)).visibility(Visibility.None) // 用于强制刷新使用 Column({ space: 2 }) { Row({ space: 8 }) { Image($r("app.media.verticalBar"))