首页增加书签悄悄更新,不做动画
This commit is contained in:
parent
aba9fac9e2
commit
2494378ab6
|
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue