fix:添加报错提示

This commit is contained in:
zhangyu
2023-02-16 10:50:52 +08:00
parent 1115992d7d
commit 1a3c89e275

View File

@@ -379,8 +379,12 @@ export default {
path: path + '/' + this.folder path: path + '/' + this.folder
} }
this.$post('/terminal/sftp/mkdir', params).then(res => { this.$post('/terminal/sftp/mkdir', params).then(res => {
this.newFolderBoxShow = false if (res.code === 200) {
this.getSftpPath(this.fileDirectory) this.newFolderBoxShow = false
this.getSftpPath(this.fileDirectory)
} else {
this.$message.error(res.msg)
}
}) })
}, },
backFileDirectory () { backFileDirectory () {
@@ -424,6 +428,7 @@ export default {
this.orderBy('dateOrderType', this.dateOrderType, 'cts') this.orderBy('dateOrderType', this.dateOrderType, 'cts')
} }
} else { } else {
this.fileDirectoryLoading = false
this.$message.error(res.msg) this.$message.error(res.msg)
this.editPath = '' this.editPath = ''
} }
@@ -478,7 +483,7 @@ export default {
}, },
setRename () { setRename () {
const params = { const params = {
uuid: this.uuid, uuid: this.uuid,
oldPath: this.fileDirectory + '/' + this.oldRenameStr, oldPath: this.fileDirectory + '/' + this.oldRenameStr,
newPath: this.fileDirectory + '/' + this.renameStr newPath: this.fileDirectory + '/' + this.renameStr
} }