From 1ac36e27cf10e98c18434d78b187c748385fa5fd Mon Sep 17 00:00:00 2001 From: xiaozzzi <42293085+xiaozzzi@users.noreply.github.com> Date: Sat, 27 Jan 2024 12:00:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8F=8C=E9=93=BE=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA=E6=97=B6=E7=9A=84=E8=BF=94=E5=9B=9E=E5=AF=B9?= =?UTF-8?q?=E8=B1=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../server/article/reference/ArticleReferenceService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/blossom-backend/backend/src/main/java/com/blossom/backend/server/article/reference/ArticleReferenceService.java b/blossom-backend/backend/src/main/java/com/blossom/backend/server/article/reference/ArticleReferenceService.java index 47d10b9..45cd579 100644 --- a/blossom-backend/backend/src/main/java/com/blossom/backend/server/article/reference/ArticleReferenceService.java +++ b/blossom-backend/backend/src/main/java/com/blossom/backend/server/article/reference/ArticleReferenceService.java @@ -134,6 +134,8 @@ public class ArticleReferenceService extends ServiceImpl result = new HashMap<>(); List all = baseMapper.listGraph(onlyInner, userId, articleId); if (CollUtil.isEmpty(all)) { + result.put("nodes",new String[0]); + result.put("links",new String[0]); return result; }