Skip to content

Commit 076eabd

Browse files
committed
bugfix: release history page error when namespace has not release
1 parent 13d63d3 commit 076eabd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

apollo-portal/src/main/resources/static/scripts/controller/config/ReleaseHistoryController.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ function releaseHistoryController($scope, $location, AppUtil,
5050
$scope.pageContext.namespaceName,
5151
$scope.page, PAGE_SIZE)
5252
.then(function (result) {
53+
if ($scope.page == 0){
54+
$(".release-history").removeClass('hidden');
55+
}
56+
5357
if (!result || result.length < PAGE_SIZE) {
5458
$scope.hasLoadAll = true;
5559
}
@@ -75,9 +79,6 @@ function releaseHistoryController($scope, $location, AppUtil,
7579

7680
$scope.page = $scope.page + 1;
7781

78-
if ($scope.page == 1){
79-
$(".release-history").removeClass('hidden');
80-
}
8182
}, function (result) {
8283
AppUtil.showErrorMsg(result, "加载发布历史信息出错");
8384
});

0 commit comments

Comments
 (0)