element中使用button会刷新一遍页面
会刷新:
<el-form-item>
<button @click="register('form')" class="submitBtn">提交</button>
</el-form-item>
不会刷新:
<el-form-item>
<button @click.prevent="register('form')" class="submitBtn">提交</button>
</el-form-item>