首页增加书签悄悄更新,不做动画

This commit is contained in:
luchenqun 2017-03-06 17:36:21 +08:00
parent aba9fac9e2
commit 2494378ab6
1 changed files with 4 additions and 2 deletions

View File

@ -169,6 +169,7 @@ app.controller('bookmarksCtr', ['$scope', '$state', '$stateParams', '$filter', '
var menusScope = $('div[ng-controller="menuCtr"]').scope(); var menusScope = $('div[ng-controller="menuCtr"]').scope();
if (menusScope.login && menusScope.selectLoginIndex == 0) { if (menusScope.login && menusScope.selectLoginIndex == 0) {
params.showStyle = $scope.showStyle; params.showStyle = $scope.showStyle;
params.forbidTransition = true;
if ($scope.showStyle == 'card') { if ($scope.showStyle == 'card') {
$scope.currentPage = 1; $scope.currentPage = 1;
$scope.bookmarks = []; $scope.bookmarks = [];
@ -210,8 +211,9 @@ app.controller('bookmarksCtr', ['$scope', '$state', '$stateParams', '$filter', '
login: true, login: true,
index: 0 index: 0
}); });
if (!(params.forbidTransition && params.forbidTransition == true)) {
transition(); transition();
}
}) })
.catch((err) => console.log('getBookmarks err', err)); .catch((err) => console.log('getBookmarks err', err));
} }