From 4ff9be458cd5caab2dc02ca84ca7bfef34ac7d23 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Tue, 29 Apr 2025 14:58:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0fetchGlobalSettings=E5=87=BD?= =?UTF-8?q?=E6=95=B0=EF=BC=9A=E5=9C=A8API=E8=AF=B7=E6=B1=82=E4=B8=AD?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0token=E5=8F=82=E6=95=B0=E4=BB=A5=E5=A2=9E?= =?UTF-8?q?=E5=BC=BA=E5=AE=89=E5=85=A8=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/api/index.ts b/src/api/index.ts index 4ec94ee3..d01fb881 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -44,7 +44,11 @@ export default api export async function fetchGlobalSettings() { try { - const result: { [key: string]: any } = await api.get('system/global') + const result: { [key: string]: any } = await api.get('system/global', { + params: { + token: 'moviepilot', + }, + }) return result.data || {} } catch (error) { console.error('Failed to fetch global settings', error)