使用element 卡片el-card设置阻止冒泡点击事件

最开始使用@click=“hand”

在hand方法里边设置阻止冒泡事件 报错:Cannot set property bubbles of #<Event> which has only a getter 只能获取不能修改属性

解决方法:@click.self="hand",阻止冒泡

猜你喜欢

转载自blog.csdn.net/men_gqi/article/details/109678032