赞
踩
1.当@click点击无效的时候
<el-button type="primary" @click="login">登录</el-button>
2.在@click后面加上.native即可
<el-button type="primary" @click.native="login">登录</el-button>