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