fix(CP页面): 调整两个点击事件的事件冒泡

This commit is contained in:
hzj 2026-03-21 19:19:00 +08:00
parent 8f4589685d
commit cf8ee191f1

View File

@ -79,7 +79,7 @@
<div <div
v-if="index !== centerIndex" v-if="index !== centerIndex"
style="position: absolute; z-index: 10; inset: 0" style="position: absolute; z-index: 10; inset: 0"
@click="moveToCenter(index)" @click.stop="moveToCenter(index)"
></div> ></div>
<!-- 点击事件 --> <!-- 点击事件 -->
@ -96,12 +96,12 @@
<!-- 情侣1 --> <!-- 情侣1 -->
<div <div
style="flex: 1; min-width: 0; align-self: stretch" style="flex: 1; min-width: 0; align-self: stretch"
@click.stop="viewUserInfo(item.userId)" @click="viewUserInfo(item.userId)"
></div> ></div>
<!-- 情侣2 --> <!-- 情侣2 -->
<div <div
style="flex: 1; min-width: 0; align-self: stretch" style="flex: 1; min-width: 0; align-self: stretch"
@click.stop="viewUserInfo(item.cpUserId)" @click="viewUserInfo(item.cpUserId)"
></div> ></div>
</div> </div>