mirror of https://github.com/halo-dev/halo
				
				
				
			refactor: remove phone field for user form (#6139)
#### What type of PR is this? /area ui /kind improvement /milestone 2.17.x #### What this PR does / why we need it: 移除用户创建/编辑表单的手机号字段,当前手机号在系统中没有任何使用。 #### Does this PR introduce a user-facing change? ```release-note None ```pull/6150/head
							parent
							
								
									aee39906a4
								
							
						
					
					
						commit
						f09b685d28
					
				| 
						 | 
				
			
			@ -28,7 +28,6 @@ const formState = ref<CreateUserRequest>({
 | 
			
		|||
  email: "",
 | 
			
		||||
  name: "",
 | 
			
		||||
  password: "",
 | 
			
		||||
  phone: "",
 | 
			
		||||
  roles: [],
 | 
			
		||||
});
 | 
			
		||||
const selectedRole = ref("");
 | 
			
		||||
| 
						 | 
				
			
			@ -108,13 +107,6 @@ const handleCreateUser = async () => {
 | 
			
		|||
        name="email"
 | 
			
		||||
        validation="required|email|length:0,100"
 | 
			
		||||
      ></FormKit>
 | 
			
		||||
      <FormKit
 | 
			
		||||
        v-model="formState.phone"
 | 
			
		||||
        :label="$t('core.user.editing_modal.fields.phone.label')"
 | 
			
		||||
        type="text"
 | 
			
		||||
        name="phone"
 | 
			
		||||
        validation="length:0,20"
 | 
			
		||||
      ></FormKit>
 | 
			
		||||
      <FormKit
 | 
			
		||||
        v-model="formState.password"
 | 
			
		||||
        :label="$t('core.user.change_password_modal.fields.new_password.label')"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -119,13 +119,6 @@ const handleUpdateUser = async () => {
 | 
			
		|||
              name="email"
 | 
			
		||||
              validation="required|email|length:0,100"
 | 
			
		||||
            ></FormKit>
 | 
			
		||||
            <FormKit
 | 
			
		||||
              v-model="formState.spec.phone"
 | 
			
		||||
              :label="$t('core.user.editing_modal.fields.phone.label')"
 | 
			
		||||
              type="text"
 | 
			
		||||
              name="phone"
 | 
			
		||||
              validation="length:0,20"
 | 
			
		||||
            ></FormKit>
 | 
			
		||||
            <FormKit
 | 
			
		||||
              v-model="formState.spec.bio"
 | 
			
		||||
              :label="$t('core.user.editing_modal.fields.bio.label')"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -32,7 +32,6 @@ const formState = ref<User>(
 | 
			
		|||
    spec: {
 | 
			
		||||
      displayName: "",
 | 
			
		||||
      email: "",
 | 
			
		||||
      phone: "",
 | 
			
		||||
      password: "",
 | 
			
		||||
      bio: "",
 | 
			
		||||
      disabled: false,
 | 
			
		||||
| 
						 | 
				
			
			@ -140,13 +139,6 @@ async function onEmailVerifyModalClose() {
 | 
			
		|||
                </VButton>
 | 
			
		||||
              </template>
 | 
			
		||||
            </FormKit>
 | 
			
		||||
            <FormKit
 | 
			
		||||
              v-model="formState.spec.phone"
 | 
			
		||||
              :label="$t('core.uc_profile.editing_modal.fields.phone.label')"
 | 
			
		||||
              type="text"
 | 
			
		||||
              name="phone"
 | 
			
		||||
              validation="length:0,20"
 | 
			
		||||
            ></FormKit>
 | 
			
		||||
            <FormKit
 | 
			
		||||
              v-model="formState.spec.bio"
 | 
			
		||||
              :label="$t('core.uc_profile.editing_modal.fields.bio.label')"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue