fix(web): 设置页按菜单加载并优化错误提示

This commit is contained in:
mofeng-git
2026-05-19 21:38:56 +08:00
parent 265852b312
commit da05656a89
4 changed files with 140 additions and 108 deletions

View File

@@ -160,7 +160,11 @@ export interface UpdateStatusResponse {
export const updateApi = {
overview: (channel: UpdateChannel = 'stable') =>
request<UpdateOverviewResponse>(`/update/overview?channel=${encodeURIComponent(channel)}`),
request<UpdateOverviewResponse>(
`/update/overview?channel=${encodeURIComponent(channel)}`,
{},
{ toastOnError: false },
),
upgrade: (payload: { channel?: UpdateChannel; target_version?: string }) =>
request<{ success: boolean; message?: string }>('/update/upgrade', {