From 243ecaaf1b18319fae1c202917e66eed66f0ce75 Mon Sep 17 00:00:00 2001 From: LIghtJUNction Date: Fri, 27 Mar 2026 19:09:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(dashboard):=20=E4=BC=98=E5=85=88=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=20localStorage=20=E4=B8=AD=E7=9A=84=20apiBaseUrl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dashboard/src/stores/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/src/stores/api.ts b/dashboard/src/stores/api.ts index 27230a30c..9f828cc68 100644 --- a/dashboard/src/stores/api.ts +++ b/dashboard/src/stores/api.ts @@ -9,7 +9,7 @@ export type ApiPreset = { export const useApiStore = defineStore("api", { state: () => ({ // 优先从 localStorage 读取用户手动设置的地址 - apiBaseUrl: getApiBaseUrl() || localStorage.getItem("apiBaseUrl") || "", + apiBaseUrl: localStorage.getItem("apiBaseUrl") || getApiBaseUrl() || "", configPresets: [] as ApiPreset[], customPresets: JSON.parse( localStorage.getItem("customPresets") || "[]",