1
0
kopie van https://github.com/ialley-workshop-open/uni-halo.git synced 2026-06-10 11:59:28 +08:00

feat: 优化投票功能,在审核模式下设置不显示

This commit is contained in:
小莫唐尼
2025-08-20 23:47:05 +08:00
bovenliggende 0b599dcced
commit c05aa5253c
3 gewijzigde bestanden met toevoegingen van 7 en 4 verwijderingen
@@ -106,7 +106,7 @@
</view>
<!-- 投票 -->
<view v-if="result._voteIds.length!==0" class="vote-wrap copyright-wrap bg-white mt-24 pa-24 round-4">
<view v-if="!calcAuditModeEnabled && result._voteIds.length!==0" class="vote-wrap copyright-wrap bg-white mt-24 pa-24 round-4">
<PluginUnavailable v-if="!uniHaloPluginAvailable" :pluginId="uniHaloPluginId"
:error-text="uniHaloPluginAvailableError" />
<template v-else>
@@ -434,7 +434,10 @@
},
calcUpvoted() {
return upvote.has("post", this.result?.metadata?.name)
}
},
calcAuditModeEnabled() {
return this.haloConfigs.auditConfig.auditModeEnabled
},
},
watch: {
haloConfigs: {