NEZ-2618 fix: Web terminal使用sftp排序无法自动取消
This commit is contained in:
@@ -585,6 +585,7 @@ export default {
|
||||
return '-'
|
||||
},
|
||||
resetState (type) {
|
||||
console.log(type)
|
||||
if (type == 'sizeOrderType') {
|
||||
this.dateOrderType = 0
|
||||
this.nameOrderType = 0
|
||||
@@ -603,7 +604,7 @@ export default {
|
||||
if (!orderType) {
|
||||
orderType = this[key] === 'asc' ? 'desc' : 'asc'
|
||||
}
|
||||
this.resetState(orderType)
|
||||
this.resetState(key)
|
||||
if (this[key] == orderType) {
|
||||
this[key] = 0
|
||||
this.fileList = this.oldFileList
|
||||
|
||||
Reference in New Issue
Block a user