mirror of
https://github.com/woodchen-ink/clash-and-dashboard.git
synced 2025-07-18 22:11:56 +08:00
Optimize: compatible with not secret
This commit is contained in:
parent
68adf9e553
commit
123f125399
@ -83,7 +83,7 @@ export async function getInstance () {
|
|||||||
|
|
||||||
instance = axios.create({
|
instance = axios.create({
|
||||||
baseURL: `http://${hostname}:${port}`,
|
baseURL: `http://${hostname}:${port}`,
|
||||||
headers: { Authorization: `Bearer ${secret}` }
|
headers: secret ? { Authorization: `Bearer ${secret}` } : {}
|
||||||
})
|
})
|
||||||
|
|
||||||
return instance
|
return instance
|
||||||
|
Loading…
x
Reference in New Issue
Block a user