fix:修改 根目录删除 path参数错误的问题

This commit is contained in:
zhangyu
2022-11-28 14:24:20 +08:00
parent f97f8ae704
commit c6e672c4e5

View File

@@ -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) {