Ivew form validation failed

< template >
< div class= "form abs-center" >

<Form ref="formValue" v-model="formValue" :rules="formRules" :label-width="80">
  <FormItem label="Name" prop="name">
    <Input v-model="formValue.name" placeholder="Enter your name"></Input>
  </FormItem>
  <FormItem label="Country" prop="country">
    <Select v-model="formValue.country" placeholder="Select your country">
      <Option value="China">China</Option>
      <Option value="U.S.A.">U.S.A.</Option>
      <Option value="Janpan">Janpan</Option>
    </Select>
  </FormItem>
</Form>

< script >
export default {
name: "Step1",
data () {

return {
  formValue: {
    name: "",
    country: ""
  },
  formRules: {
    name: [
      { required: true, message: "The name cannot be empty", trigger: "blur" }
    ],
    country: [
      { required: true, message: "Please select the country", pattern: "/.+/", trigger: "change" }
    ]
  }
}

}
}
< / script >

when the verification starts, the first name triggers an error message regardless of whether it is filled in or not, and the second country selects a value that triggers the error message. It is not clear what the problem is

.
Mar.31,2021

Hello, I posted your code and ran it. It would be fine if I changed it in two places.
first:

<Form ref="formValue" :model="formValue" :rules="formRules" :label-width="80">

v required: true, message: model = "formValue" -> : model= "formValue"
the second
{required: true, message: 'Please select the country', pattern:' /. + /', trigger: 'change'} -> {required: true, message:' Please select the country', trigger: 'change'}
the following complete code

<template>
<div class="form abs-center">

<Form ref="formValue" :model="formValue" :rules="formRules" :label-width="80">
  <FormItem label="Name" prop="name">
    <Input v-model="formValue.name" placeholder="Enter your name" />
  </FormItem>
  <FormItem label="Country" prop="country">
    <Select v-model="formValue.country" placeholder="Select your country" prop="country" @on-change="change">
      <Option value="China">China</Option>
      <Option value="U.S.A.">U.S.A.</Option>
      <Option value="Janpan">Janpan</Option>
    </Select>
  </FormItem>
</Form>
</div>
</template>

<script>
export default {
  name: "Step1",
  data() {
    return {
      formValue: {
        name: "",
        country: ""
      },
      formRules: {
        name: [
          {
            required: true,
            message: "The name cannot be empty",
            trigger: "blur"
          }
        ],
        country: [
          {
            required: true,
            message: "Please select the country",
            // pattern: "/.+/",
            trigger: "change"
          }
        ]
      }
    };
  },
};
</script>
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3667b-4d6ac.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3667b-4d6ac.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?