From cfb9a24a5f138c85c9f3091ae51ab172d7763f89 Mon Sep 17 00:00:00 2001 From: chaos-zhu Date: Sat, 17 Aug 2024 00:01:02 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E5=90=8C=E4=B8=80=E4=B8=AA=E6=96=87=E4=BB=B6=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/views/terminal/components/sftp.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/src/views/terminal/components/sftp.vue b/web/src/views/terminal/components/sftp.vue index 1838ce3..0f120ef 100644 --- a/web/src/views/terminal/components/sftp.vue +++ b/web/src/views/terminal/components/sftp.vue @@ -452,6 +452,7 @@ const handleUploadFiles = async (event) => { $message.error(`${ file.name }上传失败: ${ error }`) } } + event.target.value = '' uploadFileRef.value = null } @@ -469,6 +470,7 @@ const handleUploadDir = async (event) => { socket.value.emit('create_remote_dir', { targetDirPath, foldersName }) socket.value.once('create_remote_dir_exists', (res) => { $message.error(res) + event.target.value = '' uploadDirRef.value = null }) socket.value.once('create_remote_dir_success', async () => { @@ -481,6 +483,7 @@ const handleUploadDir = async (event) => { $message.error(`${ file.name }上传失败: ${ error }`) } } + event.target.value = '' uploadDirRef.value = null }) }