完成排序bug
This commit is contained in:
parent
7c8b533a6e
commit
040bc47219
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue