From c6e672c4e50c4b70b6d8bb19f216e81d4ef42468 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Mon, 28 Nov 2022 14:24:20 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=94=B9=20=E6=A0=B9?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=E5=88=A0=E9=99=A4=20path=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/cli/fileDirectory.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nezha-fronted/src/components/cli/fileDirectory.vue b/nezha-fronted/src/components/cli/fileDirectory.vue index 820f3d4ad..008737adb 100644 --- a/nezha-fronted/src/components/cli/fileDirectory.vue +++ b/nezha-fronted/src/components/cli/fileDirectory.vue @@ -143,9 +143,7 @@ export default { this.getSftpPath(path || '/') }, gotoPath (item, index) { - console.log(item, index, this.breadcrumb.slice(0, index + 1)) const path = '/' + this.breadcrumb.slice(0, index + 1).join('/') - console.log(path) this.getSftpPath(path || '/') }, getSftpPath (path) { @@ -206,9 +204,10 @@ export default { }, 300) }, delFile (item) { + const path = this.fileDirectory == '/' ? '' : this.fileDirectory const params = { uuid: this.uuid, - path: this.fileDirectory + '/' + item.name + path: path + '/' + item.name } this.$post('/terminal/sftp/rm', params).then(res => { if (res.code == 200) {