diff --git a/frontend/src/components/PeerCard.vue b/frontend/src/components/PeerCard.vue index f0eade7..6bdb36c 100644 --- a/frontend/src/components/PeerCard.vue +++ b/frontend/src/components/PeerCard.vue @@ -88,6 +88,10 @@ const osIcon = computed(() => { } }); +const showMismatch = computed(() => { + return props.peer.trust_mismatch && isTrusted.value; +}); + // --- 监听 --- watch( ips, @@ -163,8 +167,6 @@ const handleTrust = () => { const handleUntrust = () => { RemoveTrust(props.peer.id); isTrusted.value = false; - - props.peer.trust_mismatch = false; }; @@ -222,7 +224,7 @@ const handleUntrust = () => { {