mirror of
https://github.com/MCSManager/MCSManager.git
synced 2025-01-24 15:14:01 +08:00
Feat: remove some code
This commit is contained in:
parent
b7d4798896
commit
6929d3a3e2
@ -32,8 +32,6 @@ import type {
|
||||
} from "@/types/fileManager";
|
||||
|
||||
export const useFileManager = (
|
||||
instanceId: string | undefined,
|
||||
daemonId: string | undefined,
|
||||
operationForm: Ref<OperationForm>,
|
||||
breadcrumbs: Breadcrumb[],
|
||||
dataSource: Ref<DataType[] | undefined>,
|
||||
@ -44,7 +42,9 @@ export const useFileManager = (
|
||||
}
|
||||
| undefined
|
||||
>,
|
||||
selectionData: Ref<DataType[] | undefined>
|
||||
selectionData: Ref<DataType[] | undefined>,
|
||||
instanceId?: string,
|
||||
daemonId?: string
|
||||
) => {
|
||||
const indicator = h(LoadingOutlined, {
|
||||
style: {
|
||||
@ -86,7 +86,6 @@ export const useFileManager = (
|
||||
dialog.value.info = info;
|
||||
dialog.value.show = true;
|
||||
|
||||
// TODO: focus is bad
|
||||
dialog.value?.ref?.focus();
|
||||
|
||||
return new Promise((resolve) => {
|
||||
|
@ -135,13 +135,13 @@ const {
|
||||
getFileStatus,
|
||||
changePermission
|
||||
} = useFileManager(
|
||||
instanceId,
|
||||
daemonId,
|
||||
operationForm,
|
||||
breadcrumbs,
|
||||
dataSource,
|
||||
clipboard,
|
||||
selectionData
|
||||
selectionData,
|
||||
instanceId,
|
||||
daemonId
|
||||
);
|
||||
|
||||
watch(
|
||||
|
Loading…
Reference in New Issue
Block a user