修复crash&样式异常问题

Signed-off-by: nobbo <gaoshang22@huawei.com>
This commit is contained in:
nobbo 2023-03-24 14:21:59 +08:00
parent d9e5190b07
commit 5c63f32517
3 changed files with 2 additions and 3 deletions

View File

@ -76,8 +76,6 @@ body {
-webkit-user-select: none;
border-radius: 50%;
font-size: 0.8rem;
margin-left: 0px;
margin-top: 0px;
margin-right: 10px;
margin-bottom: 6px;
outline: none;

View File

@ -124,6 +124,7 @@ export class FolderUtil {
LogUtil.info(TAG, "folderData.uuid " + folderData.uuid + " folderData.folder_type " + folderData.folder_type)
return folderData.folder_type == FolderType.CusDef ? folderData.name : folderTextMap[folderData.uuid]
} else {
folderData.uuid = '';
LogUtil.info(TAG, "folderData undefined")
}
}

View File

@ -374,7 +374,7 @@ struct FolderItemComp {
build() {
Flex() {
if (this.folderItem.folder_type == FolderType.CusDef) {
if (this.folderItem?.folder_type == FolderType.CusDef) {
Flex({ alignItems: ItemAlign.Center, wrap: FlexWrap.NoWrap, justifyContent: FlexAlign.SpaceBetween }) {
Row() {
Image(FolderUtil.getFolderIcon(this.folderItem.uuid))