From 040bc472197f62aa718f3d7f91cfdf17afae75ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B05BEE13=2E=E5=8D=A2=E9=83=B4=E7=BE=A4?= Date: Wed, 2 Sep 2020 10:28:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E6=8E=92=E5=BA=8Fbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- www/scripts/controllers/tags-controller.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/www/scripts/controllers/tags-controller.js b/www/scripts/controllers/tags-controller.js index b5de8f0..a5b8a5d 100644 --- a/www/scripts/controllers/tags-controller.js +++ b/www/scripts/controllers/tags-controller.js @@ -366,7 +366,8 @@ app.controller('tagsCtr', ['$scope', '$filter', '$state', '$window', '$statePara bookmarkCount: '...', bookmarkClicked: false, name: '全部', - show: 1 + show: 1, + sort: -1 }) let find = false; @@ -384,6 +385,8 @@ app.controller('tagsCtr', ['$scope', '$filter', '$state', '$window', '$statePara tags[0].bookmarkClicked = true; } + tags.sort((a, b) => a.sort - b.sort); + $timeout(() => { $scope.loading = false; $scope.tags = tags;