mirror of
https://gitee.com/blossom-editor/blossom.git
synced 2025-12-06 08:48:29 +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…
x
Reference in New Issue
Block a user