应用宫格: 工具列表改按 seq 倒序(值大靠前,seq 相同按 no 倒序)

This commit is contained in:
2026-09-17 23:48:47 +08:00
parent f99a4d59eb
commit 3ddcfe3e43

View File

@@ -237,7 +237,7 @@
const items = (d && d.result && d.result.items) || [];
const apps = items
.filter(a => a.url && !/wx-h5-demo/i.test(a.url)) /* 排除授权示例 */
.sort((x, y) => (x.seq || 0) - (y.seq || 0) || (x.no || 0) - (y.no || 0));
.sort((x, y) => (y.seq || 0) - (x.seq || 0) || (y.no || 0) - (x.no || 0));
apps.forEach(a => { APP_BY_ID[a.identifier] = a; }); /* 供首页工具卡按 identifier 取 URL */
renderAppGrid(apps);
})