搜索书签bug修复
This commit is contained in:
parent
dd13f85163
commit
823e1625b0
|
|
@ -305,11 +305,15 @@ app.controller('noteCtr', ['$scope', '$state', '$stateParams', '$filter', '$wind
|
||||||
$scope.loading = true;
|
$scope.loading = true;
|
||||||
var params = {
|
var params = {
|
||||||
page: $scope.currentPage,
|
page: $scope.currentPage,
|
||||||
pageSize: 35,
|
pageSize: 35
|
||||||
keyword: $scope.keyword,
|
|
||||||
tagId: tagId || $scope.currentTagId
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (tagId || $scope.currentTagId) {
|
||||||
|
params.tagId = tagId || $scope.currentTagId;
|
||||||
|
} else if ($scope.keyword) {
|
||||||
|
params.keyword = $scope.keyword;
|
||||||
|
}
|
||||||
|
|
||||||
let reply = await get("notes", params);
|
let reply = await get("notes", params);
|
||||||
$timeout(function () {
|
$timeout(function () {
|
||||||
let notes = reply.data;
|
let notes = reply.data;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue