diff --git a/server/api/s/[id].ts b/server/api/s/[id].ts index fd2d070..84156f9 100644 --- a/server/api/s/[id].ts +++ b/server/api/s/[id].ts @@ -44,12 +44,10 @@ export default defineEventHandler(async (event): Promise => { // 没有 latest // 有 latest,服务器可以登录但没有登录 if (!latest || (!event.context.disabledLogin && !event.context.user)) { - if (event.context.disabledLogin) { - return { - status: "cache", - updatedTime: cache.updated, - items: cache.data, - } + return { + status: "cache", + updatedTime: cache.updated, + items: cache.data, } } }