🐛 Fix bugs

This commit is contained in:
2025-11-29 23:43:00 +08:00
parent 72ca5e9b77
commit 2c395e36d3
6 changed files with 49 additions and 44 deletions

View File

@@ -20,7 +20,8 @@ export const useSolarNetwork = () => {
console.log(`[useSolarNetwork] onRequest for ${request} on ${side}`)
if (devToken) {
options.headers = new Headers(options.headers)
console.log("[useSolarNetwork] Using dev token...")
options.headers.delete("Cookie")
options.headers.set("Authorization", `Bearer ${devToken}`)
}