更新fetchGlobalSettings函数:在API请求中添加token参数以增强安全性

This commit is contained in:
jxxghp
2025-04-29 14:58:45 +08:00
parent 6f5dbe5808
commit 4ff9be458c

View File

@@ -44,7 +44,11 @@ export default api
export async function fetchGlobalSettings() { export async function fetchGlobalSettings() {
try { 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 || {} return result.data || {}
} catch (error) { } catch (error) {
console.error('Failed to fetch global settings', error) console.error('Failed to fetch global settings', error)