From e044cb7dedd0c171e6a38bed486bf46c8f8c58bb Mon Sep 17 00:00:00 2001 From: hanbaoshan <hanbaoshan@aiotlink.com> Date: 星期三, 23 十二月 2020 15:20:36 +0800 Subject: [PATCH] 长春全景追踪应用更新(添加轨迹图查询,布局结构更新),场景轮播图算法图标不显示问题修复 --- src/Pool/dataStack.ts | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/src/Pool/dataStack.ts b/src/Pool/dataStack.ts index 1a7becf..ddcc64f 100644 --- a/src/Pool/dataStack.ts +++ b/src/Pool/dataStack.ts @@ -41,7 +41,17 @@ public async fetchFiles() { const rsp: any = await getDataStackDirs({ name: this.searchInput, type: this.searchType, page: 1, size: 100 }); if (rsp && rsp.success) { - this.dirs = rsp.data.dataList; + this.dirs = rsp.data.dataList.sort(function (obj1: any, obj2: any) { + var val1 = obj1.name; + var val2 = obj2.name; + if (val1 < val2) { + return -1; + } else if (val1 > val2) { + return 1; + } else { + return 0; + } + }); } } -- Gitblit v1.8.0