diff --git a/src/main/ui/static/config/sysconfigs/sysconfigs.js b/src/main/ui/static/config/sysconfigs/sysconfigs.js index 2beef51d6..7cbd79014 100644 --- a/src/main/ui/static/config/sysconfigs/sysconfigs.js +++ b/src/main/ui/static/config/sysconfigs/sysconfigs.js @@ -77,6 +77,9 @@ define(['angular', 'uiRouter'], function (angular) { $scope.onoff = function (servant) { var param = {onoff:servant.onoff}; $http.put('/sys/openim/servant/'+servant.manager_id+'/onoff',param).then(function (resp) { + if(!servant.password){ + $scope.loadServants(); + } },function (resp) { commonDialog.alert({title: 'Error', content: resp.data.message, type: 'error'}); });