mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-07-29 20:21:44 +08:00
fix(web): 设置页按菜单加载并优化错误提示
This commit is contained in:
@@ -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', {
|
||||
|
||||
Reference in New Issue
Block a user