1、按钮是el-button标签,为点击事件加.native.stop ,即 @click.native.stop=“handleClick(scope.row)”
2、按钮是原生标签,为点击事件加.stop ,即 @click.stop=“handleClick(scope.row)”
<el-table @row-click="handleCellClick">
<el-table-column prop="name" label="Name">
<el-button type="primary" @click.native.stop=“handleClick(scope.row)”>Submit</el-button>
</el-table-column>
<el-table-column prop="age" label="Age">
<template slot-scope="scope">
<span @click.stop=“handleClick(scope.row)”></span>
</template>
</el-table-column>
</el-table>
参考文献:https://blog.csdn.net/weixin_47941995/article/details/122977054