From dd0237a83a17cfdc902dea9f1cf338dde4dd28d3 Mon Sep 17 00:00:00 2001 From: lijiahangmax Date: Tue, 8 Jul 2025 00:32:37 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E4=B8=8D=E6=AD=A3=E7=A1=AE=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/terminal/components/view/sftp/sftp-chmod-modal.vue | 3 +-- .../views/terminal/components/view/sftp/sftp-move-modal.vue | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) 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);