diff --git a/orion-visor-ui/src/views/terminal/components/view/sftp/sftp-chmod-modal.vue b/orion-visor-ui/src/views/terminal/components/view/sftp/sftp-chmod-modal.vue index 584ba3f4..f07d1b4d 100644 --- a/orion-visor-ui/src/views/terminal/components/view/sftp/sftp-chmod-modal.vue +++ b/orion-visor-ui/src/views/terminal/components/view/sftp/sftp-chmod-modal.vue @@ -71,8 +71,7 @@ }; // 打开新增 - const open = (key: string, path: string, permission: number) => { - sessionKey.value = key; + const open = (path: string, permission: number) => { formModel.value.path = path; formModel.value.mod = permission; formModel.value.permission = permission10toString(permission); diff --git a/orion-visor-ui/src/views/terminal/components/view/sftp/sftp-move-modal.vue b/orion-visor-ui/src/views/terminal/components/view/sftp/sftp-move-modal.vue index 67784643..e1bed339 100644 --- a/orion-visor-ui/src/views/terminal/components/view/sftp/sftp-move-modal.vue +++ b/orion-visor-ui/src/views/terminal/components/view/sftp/sftp-move-modal.vue @@ -48,7 +48,6 @@ const { visible, setVisible } = useVisible(); - const sessionKey = ref(); const targetRef = ref(); const formRef = ref(); const formModel = ref({ @@ -57,8 +56,7 @@ }); // 打开新增 - const open = (key: string, path: string) => { - sessionKey.value = key; + const open = (path: string) => { formModel.value.path = path; formModel.value.target = path; setVisible(true);