From 452d0218162ab1ed038a42ef0b0b265e99143ba4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=8E=AB=E5=94=90=E5=B0=BC?= Date: Sat, 19 Jul 2025 14:08:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=9B=BE=E5=BA=93?= =?UTF-8?q?=E5=88=86=E7=B1=BB=E6=8E=92=E5=BA=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/tabbar/gallery/gallery.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pages/tabbar/gallery/gallery.vue b/pages/tabbar/gallery/gallery.vue index ec1fc25..02b88a5 100644 --- a/pages/tabbar/gallery/gallery.vue +++ b/pages/tabbar/gallery/gallery.vue @@ -162,9 +162,11 @@ export default { this.category.list = res.items.map(item => { return { name: item.metadata.name, - displayName: item.spec.displayName + displayName: item.spec.displayName, + priority: item.spec.priority } - }); + }).sort((a,b) => a.priority - b.priority); + if (this.category.list.length !== 0) { this.queryParams.group = this.category.list[0].name; this.fnGetData(true);