搜索书签bug修复

This commit is contained in:
HelloWorld 2020-04-22 15:14:05 +08:00
parent dd13f85163
commit 823e1625b0
1 changed files with 7 additions and 3 deletions

View File

@ -305,11 +305,15 @@ app.controller('noteCtr', ['$scope', '$state', '$stateParams', '$filter', '$wind
$scope.loading = true;
var params = {
page: $scope.currentPage,
pageSize: 35,
keyword: $scope.keyword,
tagId: tagId || $scope.currentTagId
pageSize: 35
};
if (tagId || $scope.currentTagId) {
params.tagId = tagId || $scope.currentTagId;
} else if ($scope.keyword) {
params.keyword = $scope.keyword;
}
let reply = await get("notes", params);
$timeout(function () {
let notes = reply.data;