1
0
peilaus alkaen https://github.com/ialley-workshop-open/uni-halo.git synced 2026-06-12 13:19:31 +08:00

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

This commit is contained in:
小莫唐尼
2025-08-20 23:47:05 +08:00
vanhempi 0b599dcced
commit c05aa5253c
3 muutettua tiedostoa jossa 7 lisäystä ja 4 poistoa
+1 -1
Näytä tiedosto
@@ -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
Näytä tiedosto
@@ -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: '友情链接',
@@ -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: {