NEZ-2618 fix: Web terminal使用sftp排序无法自动取消

This commit is contained in:
zhangyu
2023-02-28 14:54:34 +08:00
parent c9b0ecc5c3
commit 63c9054386

View File

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