使用@touchend.stop="handleBtnClick"可以解决这个问题,但不会自动收回去,在navigateTo的success方法中调用this.$refs.swipeAction.closeAll()就可以了。
<uni-swipe-action ref="swipeAction" >
<uni-swipe-action-item
style="margin-bottom: 24rpx;"
v-for="(item, index) in dataList"
:key="index">
<view class="item_wrapper"
//页面
</view>
<template v-slot:right>
<view class="slot_btn">
<view class="slot-section edit-btn" @touchend.stop.prevent="goEdit(item,index)">
编辑
</view>
<view class="slot-section delete-btn" @touchend.stop.prevent="deleteCruise(item,index)">
删除
</view>
</view>
</template>
</uni-swipe-action-item>
</uni-swipe-action>