Feat: remove some code

This commit is contained in:
alongw 2023-10-16 23:09:14 +08:00
parent b7d4798896
commit 6929d3a3e2
2 changed files with 6 additions and 7 deletions

View File

@ -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) => {

View File

@ -135,13 +135,13 @@ const {
getFileStatus,
changePermission
} = useFileManager(
instanceId,
daemonId,
operationForm,
breadcrumbs,
dataSource,
clipboard,
selectionData
selectionData,
instanceId,
daemonId
);
watch(