1
0
鏡像自 https://github.com/ialley-workshop-open/uni-halo.git 已同步 2026-06-12 13:19:31 +08:00

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

此提交包含在:
小莫唐尼
2025-08-20 23:47:05 +08:00
父節點 0b599dcced
當前提交 c05aa5253c
共有 3 個檔案被更改,包括 7 行新增4 行删除
+5 -2
查看文件
@@ -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: {