fix:修改 根目录删除 path参数错误的问题
This commit is contained in:
@@ -143,9 +143,7 @@ export default {
|
|||||||
this.getSftpPath(path || '/')
|
this.getSftpPath(path || '/')
|
||||||
},
|
},
|
||||||
gotoPath (item, index) {
|
gotoPath (item, index) {
|
||||||
console.log(item, index, this.breadcrumb.slice(0, index + 1))
|
|
||||||
const path = '/' + this.breadcrumb.slice(0, index + 1).join('/')
|
const path = '/' + this.breadcrumb.slice(0, index + 1).join('/')
|
||||||
console.log(path)
|
|
||||||
this.getSftpPath(path || '/')
|
this.getSftpPath(path || '/')
|
||||||
},
|
},
|
||||||
getSftpPath (path) {
|
getSftpPath (path) {
|
||||||
@@ -206,9 +204,10 @@ export default {
|
|||||||
}, 300)
|
}, 300)
|
||||||
},
|
},
|
||||||
delFile (item) {
|
delFile (item) {
|
||||||
|
const path = this.fileDirectory == '/' ? '' : this.fileDirectory
|
||||||
const params = {
|
const params = {
|
||||||
uuid: this.uuid,
|
uuid: this.uuid,
|
||||||
path: this.fileDirectory + '/' + item.name
|
path: path + '/' + item.name
|
||||||
}
|
}
|
||||||
this.$post('/terminal/sftp/rm', params).then(res => {
|
this.$post('/terminal/sftp/rm', params).then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
|
|||||||
Reference in New Issue
Block a user