mirror of
https://gitee.com/openharmony/applications_notes
synced 2024-11-23 07:30:27 +00:00
修复crash&样式异常问题
Signed-off-by: nobbo <gaoshang22@huawei.com>
This commit is contained in:
parent
d9e5190b07
commit
5c63f32517
@ -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;
|
||||
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user