feat(update): 应用内更新提示支持英文 release notes
This commit is contained in:
1 parent
f45011977f
commit
9cbe857a2a
11 files changed
+214
-20
No files matched your search
@@ -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> {
|
||||
|
||||
@@ -1270,8 +1270,8 @@ export async function installMcpServer(): Promise<string> {
|
||||
return invoke("install_mcp_server");
|
||||
}
|
||||
|
||||
export async function checkForUpdates(): Promise<UpdateInfo> {
|
||||
return invoke("check_for_updates");
|
||||
export async function checkForUpdates(locale?: string): Promise<UpdateInfo> {
|
||||
return invoke("check_for_updates", { locale });
|
||||
}
|
||||
|
||||
export async function getSystemProxyUrl(): Promise<string | null> {
|
||||
|
||||
Reference in new issue
Block a user