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") || "[]",