When entering, the element will trigger the unnecessary carriage return to refresh the page twice, and you need to add a blocking event
Add @submit.prevent in el-form to prevent the event
<el-form
ref="Form"
:model="form"
class="form"
@submit.prevent
>
<el-form-item label="名称" prop="name">
<el-input
v-model="form.name"
placeholder="请输入名称"
clearable
v-focus
@keyup.enter.native="search"
/>
</el-form-item>
</el-form>
The author's previous article,