fix(接口自动化): #1006040 【接口自动化】-删除场景用例-回收站中删除时间排序查看后顺序错误

【【接口自动化】-删除场景用例-回收站中删除时间排序查看后顺序错误】https://www.tapd.cn/55049933/bugtrace/bugs/view?bug_id=1155049933001006040
This commit is contained in:
song-tianyang 2021-08-24 11:42:39 +08:00 committed by 刘瑞斌
parent fdca09423e
commit 2ced6c62ee
1 changed files with 9 additions and 3 deletions

View File

@ -492,10 +492,16 @@ export default {
}
}
let orderArr = this.getSortField();
if (orderArr) {
this.condition.orders = orderArr;
if(this.trashEnable){
this.condition.orders = [{"name":"delete_time","type":"desc"}];
}else {
let orderArr = this.getSortField();
if (orderArr) {
this.condition.orders = orderArr;
}
}
this.search();
this.getPrincipalOptions([]);