fix(modal): resolve premature modal closing caused by unsupported click.self in wechat miniprogram

这个提交包含在:
xcbyy
2026-10-13 16:54:55 +08:00
父节点 d08acc052a
当前提交 56e672219e
共有 8 个文件被更改,包括 86 次插入 和 22 次删除

查看文件

@@ -184,8 +184,8 @@
</view>
<!-- 举报不良行为弹窗 -->
<view class="review-modal-mask" v-if="reportModalVisible" @click.self="closeReportModal">
<view class="review-modal-content">
<view class="review-modal-mask" v-if="reportModalVisible" @click="closeReportModal">
<view class="review-modal-content" @click.stop="stopPropagation">
<view class="modal-header">
<view class="modal-header-left">
<text class="modal-title">举报违规行为</text>
@@ -264,6 +264,12 @@ onUnmounted(() => {
uni.$off('theme-change', onThemeChanged);
});
const stopPropagation = (e) => {
if (e && typeof e.stopPropagation === 'function') {
e.stopPropagation();
}
};
const isLoading = ref(true);
const isFav = ref(false);
const expert = ref({