diff --git a/apollo-portal/src/main/resources/static/scripts/directive/directive.js b/apollo-portal/src/main/resources/static/scripts/directive/directive.js index 5f188c133fccf1ea510e094b9068eab54ac4574e..a972ca93e7370ea07d3c798a379a4aeb5a485158 100644 --- a/apollo-portal/src/main/resources/static/scripts/directive/directive.js +++ b/apollo-portal/src/main/resources/static/scripts/directive/directive.js @@ -43,14 +43,11 @@ directive_module.directive('apollonav', function ($compile, $window, toastr, App scope.jumpToConfigPage = function () { if (selectedApp.appId) { - var needReloadPage = false; if ($window.location.href.indexOf("config.html") > -1) { - needReloadPage = true; - } - $window.location.href = '/config.html?#appid=' + selectedApp.appId; - - if (needReloadPage) { + $window.location.hash = "appid=" + selectedApp.appId; $window.location.reload(); + }else { + $window.location.href = '/config.html?#appid=' + selectedApp.appId; } } }; diff --git a/apollo-portal/src/main/resources/static/views/common/nav.html b/apollo-portal/src/main/resources/static/views/common/nav.html index e8d741809a7c773556aecb556f927b1fa880c40f..b3e375a0a7c0b03d70e971ef33b5a07d68b3e427 100644 --- a/apollo-portal/src/main/resources/static/views/common/nav.html +++ b/apollo-portal/src/main/resources/static/views/common/nav.html @@ -4,15 +4,12 @@ -