完成排序bug

This commit is contained in:
B05BEE13.卢郴群 2020-09-02 10:28:00 +08:00
parent 7c8b533a6e
commit 040bc47219
1 changed files with 4 additions and 1 deletions

View File

@ -366,7 +366,8 @@ app.controller('tagsCtr', ['$scope', '$filter', '$state', '$window', '$statePara
bookmarkCount: '...', bookmarkCount: '...',
bookmarkClicked: false, bookmarkClicked: false,
name: '全部', name: '全部',
show: 1 show: 1,
sort: -1
}) })
let find = false; let find = false;
@ -384,6 +385,8 @@ app.controller('tagsCtr', ['$scope', '$filter', '$state', '$window', '$statePara
tags[0].bookmarkClicked = true; tags[0].bookmarkClicked = true;
} }
tags.sort((a, b) => a.sort - b.sort);
$timeout(() => { $timeout(() => {
$scope.loading = false; $scope.loading = false;
$scope.tags = tags; $scope.tags = tags;