diff --git a/apollo-portal/src/main/resources/application.yml b/apollo-portal/src/main/resources/application.yml index cc6903a1c9cfbf4cfb5c9e935467fc66e3fdfcbd..c5b1d1d2335470ee101ec9adc965f24b02943927 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 10421484c12754d5a692d879659ecc40db2a027f..0cb12d6e2a67069747d205ae533c9f56406be2ce 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);