mirror of
https://github.com/blossom-editor/blossom
synced 2024-11-17 14:39:21 +08:00
fix: 双链内容为空时的返回对象
This commit is contained in:
parent
03ee3978b8
commit
1ac36e27cf
@ -134,6 +134,8 @@ public class ArticleReferenceService extends ServiceImpl<ArticleReferenceMapper,
|
||||
Map<String, Object> result = new HashMap<>();
|
||||
List<ArticleReferenceEntity> all = baseMapper.listGraph(onlyInner, userId, articleId);
|
||||
if (CollUtil.isEmpty(all)) {
|
||||
result.put("nodes",new String[0]);
|
||||
result.put("links",new String[0]);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user