mirror of
https://github.com/openharmony/applications_notes.git
synced 2026-07-19 13:16:40 -04:00
!202 修改压测出现的jscrash
Merge pull request !202 from nobbo/OpenHarmony-3.2-Release
This commit is contained in:
@@ -120,8 +120,13 @@ export class FolderUtil {
|
||||
* @return string | Resource - folder text
|
||||
*/
|
||||
getFolderText(folderData: FolderData): string | Resource {
|
||||
LogUtil.info(TAG, "folderData.uuid " + folderData.uuid + " folderData.folder_type " + folderData.folder_type)
|
||||
return folderData.folder_type == FolderType.CusDef ? folderData.name : folderTextMap[folderData.uuid]
|
||||
if (folderData && folderData.uuid) {
|
||||
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")
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user