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 行删除
+1 -1
查看文件
@@ -218,7 +218,7 @@
path: '/pagesA/votes/votes', path: '/pagesA/votes/votes',
isAdmin: false, isAdmin: false,
type: 'page', type: 'page',
show: true show: !this.calcAuditModeEnabled
}, { }, {
key: 'disclaimers', key: 'disclaimers',
title: '友情链接', title: '友情链接',
+1 -1
查看文件
@@ -552,7 +552,7 @@
iconColor: '', iconColor: '',
path: '/pagesA/votes/votes', path: '/pagesA/votes/votes',
type: 'page', type: 'page',
show: true show: !this.calcAuditModeEnabled
}, { }, {
key: 'disclaimers', key: 'disclaimers',
title: '友情链接', title: '友情链接',
+5 -2
查看文件
@@ -106,7 +106,7 @@
</view> </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" <PluginUnavailable v-if="!uniHaloPluginAvailable" :pluginId="uniHaloPluginId"
:error-text="uniHaloPluginAvailableError" /> :error-text="uniHaloPluginAvailableError" />
<template v-else> <template v-else>
@@ -434,7 +434,10 @@
}, },
calcUpvoted() { calcUpvoted() {
return upvote.has("post", this.result?.metadata?.name) return upvote.has("post", this.result?.metadata?.name)
} },
calcAuditModeEnabled() {
return this.haloConfigs.auditConfig.auditModeEnabled
},
}, },
watch: { watch: {
haloConfigs: { haloConfigs: {