From fdfc2d36f51a236002c5b415d3f71ce4a3f99f33 Mon Sep 17 00:00:00 2001 From: Ap_Tx <3045929398@qq.com> Date: Thu, 22 Oct 2026 21:43:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B5=84=E6=BA=90=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=B8=A6=E4=B8=8A=E7=99=BB=E5=BD=95=E5=87=AD?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit download/list、download/count、download/category/list 在后端位于 requireLogin 内, 前端却以 auth: false 请求,未携带 token 导致 401,已登录用户也被提示未登录。 --- apps/app-frontend/src/helpers/skin-site-api.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/apps/app-frontend/src/helpers/skin-site-api.ts b/apps/app-frontend/src/helpers/skin-site-api.ts index 130094c..9b6ca1d 100644 --- a/apps/app-frontend/src/helpers/skin-site-api.ts +++ b/apps/app-frontend/src/helpers/skin-site-api.ts @@ -556,22 +556,18 @@ export function skinSitePublicDownloadList(options?: { offset: String(options?.offset ?? 0), }) if (options?.category) query.set('category', options.category) - return skinSiteRequest(`download/list?${query.toString()}`, { - auth: false, - }) + return skinSiteRequest(`download/list?${query.toString()}`) } export function skinSitePublicDownloadCount(category?: string): Promise> { const suffix = category ? `?category=${encodeURIComponent(category)}` : '' - return skinSiteRequest(`download/count${suffix}`, { auth: false }) + return skinSiteRequest(`download/count${suffix}`) } export function skinSitePublicDownloadCategories(): Promise< SkinSiteResponse > { - return skinSiteRequest('download/category/list', { - auth: false, - }) + return skinSiteRequest('download/category/list') } // --------------------------------------------------------------------------- // Maps