mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-09 07:00:48 +08:00
feat: Adjust disk management menu order (#10324)
This commit is contained in:
parent
9b50581fd4
commit
60b1c9ba32
3 changed files with 14 additions and 20 deletions
|
@ -127,10 +127,8 @@ export const addFavorite = (path: string) => {
|
|||
};
|
||||
|
||||
export const readByLine = (req: File.FileReadByLine, operateNode?: string) => {
|
||||
if (operateNode) {
|
||||
return http.post<any>('files/read', req, TimeoutEnum.T_40S, { CurrentNode: operateNode });
|
||||
}
|
||||
return http.post<any>('files/read', req);
|
||||
const params = operateNode ? `?operateNode=${operateNode}` : '';
|
||||
return http.post<any>(`files/read${params}`, req, TimeoutEnum.T_40S);
|
||||
};
|
||||
|
||||
export const removeFavorite = (id: number) => {
|
||||
|
|
|
@ -126,10 +126,6 @@ export const unmountDisk = (params: Host.DiskUmount) => {
|
|||
};
|
||||
|
||||
export const getComponentInfo = (name: string, operateNode?: string) => {
|
||||
if (operateNode) {
|
||||
return http.get<Host.ComponentInfo>(`/hosts/components/${name}`, {
|
||||
CurrentNode: operateNode,
|
||||
});
|
||||
}
|
||||
return http.get<Host.ComponentInfo>(`/hosts/components/${name}`);
|
||||
const params = operateNode ? `?operateNode=${operateNode}` : '';
|
||||
return http.get<Host.ComponentInfo>(`/hosts/components/${name}${params}`);
|
||||
};
|
||||
|
|
|
@ -77,6 +77,16 @@ const hostRouter = {
|
|||
requiresAuth: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/hosts/disk',
|
||||
name: 'Disk',
|
||||
props: true,
|
||||
component: () => import('@/views/host/disk-management/disk/index.vue'),
|
||||
meta: {
|
||||
title: 'menu.disk',
|
||||
requiresAuth: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/hosts/process/process',
|
||||
name: 'Process',
|
||||
|
@ -137,16 +147,6 @@ const hostRouter = {
|
|||
requiresAuth: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/hosts/disk',
|
||||
name: 'Disk',
|
||||
props: true,
|
||||
component: () => import('@/views/host/disk-management/disk/index.vue'),
|
||||
meta: {
|
||||
title: 'menu.disk',
|
||||
requiresAuth: false,
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue