From 1a3c89e275eec9dd38b99b957e42c431d89da09a Mon Sep 17 00:00:00 2001 From: zhangyu Date: Thu, 16 Feb 2023 10:50:52 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E6=B7=BB=E5=8A=A0=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/cli/fileDirectory.vue | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/nezha-fronted/src/components/cli/fileDirectory.vue b/nezha-fronted/src/components/cli/fileDirectory.vue index e5827c03b..5ceea8859 100644 --- a/nezha-fronted/src/components/cli/fileDirectory.vue +++ b/nezha-fronted/src/components/cli/fileDirectory.vue @@ -379,8 +379,12 @@ export default { path: path + '/' + this.folder } this.$post('/terminal/sftp/mkdir', params).then(res => { - this.newFolderBoxShow = false - this.getSftpPath(this.fileDirectory) + if (res.code === 200) { + this.newFolderBoxShow = false + this.getSftpPath(this.fileDirectory) + } else { + this.$message.error(res.msg) + } }) }, backFileDirectory () { @@ -424,6 +428,7 @@ export default { this.orderBy('dateOrderType', this.dateOrderType, 'cts') } } else { + this.fileDirectoryLoading = false this.$message.error(res.msg) this.editPath = '' } @@ -478,7 +483,7 @@ export default { }, setRename () { const params = { - uuid: this.uuid, + uuid: this.uuid, oldPath: this.fileDirectory + '/' + this.oldRenameStr, newPath: this.fileDirectory + '/' + this.renameStr }