Browse Source

1. 用户名称必填

MONSTER-ygh 10 months ago
parent
commit
174e90bc4f
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/views/system/user/index.vue

+ 3 - 0
src/views/system/user/index.vue

@@ -431,6 +431,9 @@ export default {
         nickName: [
           { required: true, message: "用户昵称不能为空", trigger: "blur" }
         ],
+        name: [
+          { required: true, message: "用户名称不能为空", trigger: "blur" }
+        ],
         password: [
           { required: true, message: "用户密码不能为空", trigger: "blur" },
           { min: 5, max: 20, message: '用户密码长度必须介于 5 和 20 之间', trigger: 'blur' },