From c3f89d320f0772ee3164abfcd2e517be474d6491 Mon Sep 17 00:00:00 2001 From: lepdou Date: Wed, 4 May 2016 17:59:30 +0800 Subject: [PATCH] uat & bugfix --- apollo-portal/src/main/resources/application.yml | 2 +- .../static/scripts/controller/app/AppConfigController.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apollo-portal/src/main/resources/application.yml b/apollo-portal/src/main/resources/application.yml index cc6903a1c..c5b1d1d23 100644 --- a/apollo-portal/src/main/resources/application.yml +++ b/apollo-portal/src/main/resources/application.yml @@ -17,4 +17,4 @@ ctrip: apollo: portal: - env: dev,fat + env: dev,fat,uat diff --git a/apollo-portal/src/main/resources/static/scripts/controller/app/AppConfigController.js b/apollo-portal/src/main/resources/static/scripts/controller/app/AppConfigController.js index 10421484c..0cb12d6e2 100644 --- a/apollo-portal/src/main/resources/static/scripts/controller/app/AppConfigController.js +++ b/apollo-portal/src/main/resources/static/scripts/controller/app/AppConfigController.js @@ -245,8 +245,8 @@ application_module.controller("AppConfigController", AppService.create(env, $scope.appBaseInfo).then(function (result) { toastr.success(env, '创建成功'); count ++; - if (count == $scope.selectedEnvs){ - $route.reload(); + if (count == $scope.selectedEnvs.length){ + location.reload(true); } }, function (result) { toastr.error(AppUtil.errorMsg(result), '创建失败:' + env); -- GitLab