李昊 4 年之前
父节点
当前提交
bab6a70c9d
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      gx_api/GxPress/Service/GxPress.Service.Implement/Collection/CollectionService.cs

+ 2 - 0
gx_api/GxPress/Service/GxPress.Service.Implement/Collection/CollectionService.cs

@@ -242,6 +242,8 @@ namespace GxPress.Service.Implement.Collection
                 return new PagedList<CollectionNoFolderResult>();
             foreach (var item in result.Items)
             {
+                if (string.IsNullOrEmpty(item.FolderName))
+                    item.FolderName = "根目录";
                 item.Data = await StructCollectionData(item.CollectionDataId, item.CollectionType, item.SourceUserId);
                 if (string.IsNullOrWhiteSpace(item.Title))
                 {