feat: set selectedRole as required when creating a new user (#5697)

#### What type of PR is this?

/kind improvement
/area ui

#### Which issue(s) this PR fixes:

Fixes #5677 

#### Does this PR introduce a user-facing change?

```release-note
将新建用户的表单中的角色设置设为必填
```
pull/5708/head
mashirot 2024-04-15 12:30:10 +08:00 committed by GitHub
parent 505f38a145
commit d4f38dc6c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -163,6 +163,7 @@ const handleCreateUser = async () => {
v-model="selectedRole"
:label="$t('core.user.grant_permission_modal.fields.role.label')"
type="roleSelect"
validation="required"
></FormKit>
<FormKit
v-model="formState.bio"