Vue adds events to parent and child elements at the same time to prevent events from bubbling

Just add a .stop to the child element

<div @click="fuji">
<div @click.stop="ziji"></div>
</div>

Guess you like

Origin blog.csdn.net/weixin_45663264/article/details/108637608