From 02aac99637fae636b0e4951a3a1ff0ee2102f4b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=91=E8=BD=BB=E7=8B=82?= <1677568218@qq.com> Date: Fri, 3 Feb 2023 20:34:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=87=E7=AB=A0=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=96=B0=E5=A2=9E=E4=BD=9C=E8=80=85=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/server/api/articles/list.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/frontend/server/api/articles/list.ts b/frontend/server/api/articles/list.ts index e01b8e2..1a7859c 100644 --- a/frontend/server/api/articles/list.ts +++ b/frontend/server/api/articles/list.ts @@ -1,7 +1,13 @@ import { useGraphql } from '~~/utils/useGraphql' import { useTime } from '~~/composables/useTime' interface IAuthor { + id: string name: string + motto: string + avatar: string + rank: Number + liked: Number + viewed: Number } interface ITagItem { @@ -72,8 +78,14 @@ export default defineEventHandler(async (event): Promise => { createdAt authorId{ data{ + id attributes{ name + motto + avatar + rank + liked + viewed } } }