fix(仪表板): 修复资源树排序无变化问题
This commit is contained in:
parent
7e94fe3892
commit
6c0904784f
@ -21,7 +21,7 @@ export function sortPer(subTree, hisSortType, sortType) {
|
||||
subTree.sort((a, b) => b.name.localeCompare(a.name, 'zh-Hans-CN', { sensitivity: 'accent' }))
|
||||
} else if (sortType === 'name_asc') {
|
||||
subTree.sort((a, b) => a.name.localeCompare(b.name, 'zh-Hans-CN', { sensitivity: 'accent' }))
|
||||
} else if (sortType.indexOf('time') !== -1 && hisSortType !== sortType) {
|
||||
} else if (sortType === 'time_asc') {
|
||||
subTree.reverse()
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user