mirror of
https://github.com/woodchen-ink/clash-and-dashboard.git
synced 2025-07-18 05:51:56 +08:00
修改restapi地址,不再在localstorage获取
This commit is contained in:
parent
8616783b97
commit
19db9cf3cf
@ -46,10 +46,8 @@ function getControllerFromLocation (): string | null {
|
||||
}
|
||||
|
||||
// jotai v2 use initialValue first avoid hydration warning, but we don't want that
|
||||
const hostsStorageOrigin = localStorage.getItem('externalControllers') ??
|
||||
getControllerFromLocation() ??
|
||||
'[{ "hostname": "127.0.0.1", "port": 7890, "secret": "" }]'
|
||||
const hostSelectIdxStorageOrigin = localStorage.getItem('externalControllerIndex') ?? '0'
|
||||
const hostsStorageOrigin = '[{ "hostname": "127.0.0.1", "port": 9090, "secret": "" }]'
|
||||
const hostSelectIdxStorageOrigin = '0'
|
||||
|
||||
export const hostsStorageAtom = atomWithStorage<Array<{
|
||||
hostname: string
|
||||
|
Loading…
x
Reference in New Issue
Block a user