关键代码 @submit.prevent
:
<template>
<el-form @submit.prevent="handleSearch">
<el-input v-model="searchKeyword" size="large" clearable>
<template #append>
<el-button :icon="Search" @click="handleSearch" />
</template>
</el-input>
</el-form>
</template>