feat(update): 应用内更新提示支持英文 release notes

This commit is contained in:
t8y2 committed 2026-07-07 00:26:56 +08:00
1 parent f45011977f
commit 9cbe857a2a
11 files changed
+214 -20

No files matched your search

+3 -2
View File
@@ -2042,8 +2042,9 @@ export async function deleteHistoryEntry(id: string): Promise<void> {
// Updates
// ---------------------------------------------------------------------------
export async function checkForUpdates(): Promise<UpdateInfo> {
return get("/api/update/check");
export async function checkForUpdates(locale?: string): Promise<UpdateInfo> {
const query = locale ? `?locale=${encodeURIComponent(locale)}` : "";
return get(`/api/update/check${query}`);
}
export async function checkMcpServerStatus(): Promise<import("@/lib/backend/tauri").McpServerStatus> {