From 009798acb166503d2372f33e2d8abdd624b6ddcb Mon Sep 17 00:00:00 2001 From: zhangle Date: Tue, 6 Sep 2016 10:02:59 +0800 Subject: [PATCH] bugfix: nav search bar link --- .../main/resources/static/scripts/directive/directive.js | 9 +++------ .../src/main/resources/static/views/common/nav.html | 5 +---- .../static/views/component/namespace-panel.html | 2 +- 3 files changed, 5 insertions(+), 11 deletions(-) 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 5f188c133..a972ca93e 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 e8d741809..b3e375a0a 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 @@ -