Browse Source

Merge remote-tracking branch 'origin/release-201821-wangcz' into release-201821-wangcz

yujia 7 years ago
parent
commit
886ed5f1e4

+ 4 - 0
src/main/webapp/resources/js/sso/controllers/staffManagementCtrl.js

@@ -219,6 +219,10 @@ define(['app/app'], function (app) {
          * 添加未注册用户
          */
         $scope.addUser = function () {
+            if (!$scope.newUser.userName) {
+                toaster.pop('error', '请输入用户名信息');
+                return;
+            }
             if (!$scope.userEmailSuccess || !$scope.userTelSuccess) {
                 toaster.pop('error', '请输入正确的信息后提交');
                 return;