diff --git a/apollo-portal/src/main/resources/static/scripts/controller/config/ConfigBaseInfoController.js b/apollo-portal/src/main/resources/static/scripts/controller/config/ConfigBaseInfoController.js index d579350e5506c425bcbd0e843ff0207a84b38dee..061caad29c6b9eeda201a01d5c8f11a2ad883f81 100644 --- a/apollo-portal/src/main/resources/static/scripts/controller/config/ConfigBaseInfoController.js +++ b/apollo-portal/src/main/resources/static/scripts/controller/config/ConfigBaseInfoController.js @@ -105,6 +105,10 @@ function ConfigBaseInfoController($rootScope, $scope, $window, $location, toastr AppService.find_miss_envs($rootScope.pageContext.appId).then(function (result) { $scope.missEnvs = AppUtil.collectData(result); + if ($scope.missEnvs.length > 0) { + toastr.warning("当前项目有环境缺失,请点击页面左侧『补缺环境』补齐数据"); + } + $scope.findMissingNamespaces(); }); } @@ -120,6 +124,9 @@ function ConfigBaseInfoController($rootScope, $scope, $window, $location, toastr AppService.find_missing_namespaces($rootScope.pageContext.appId, $rootScope.pageContext.env, $rootScope.pageContext.clusterName).then(function (result) { $scope.missingNamespaces = AppUtil.collectData(result); + if ($scope.missingNamespaces.length > 0) { + toastr.warning("当前环境有Namespace缺失,请点击页面左侧『补缺Namespace』补齐数据"); + } }); } }; diff --git a/apollo-portal/src/main/resources/static/views/component/delete-namespace-modal.html b/apollo-portal/src/main/resources/static/views/component/delete-namespace-modal.html index 414cca9002105f5bdc3de35ab1c9a913c724d9d2..b194b6b5dbad848ca923ce1514c53ffa46666283 100644 --- a/apollo-portal/src/main/resources/static/views/component/delete-namespace-modal.html +++ b/apollo-portal/src/main/resources/static/views/component/delete-namespace-modal.html @@ -12,7 +12,7 @@ 删除Namespace将导致实例获取不到此Namespace的配置,确定要删除吗?