Skip to content

Commit

Permalink
[*] 直接使用 china 字段判断是二级还是一级认证
Browse files Browse the repository at this point in the history
  • Loading branch information
Muska-Ami committed Oct 11, 2024
1 parent 259aae6 commit b5e450a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
12 changes: 3 additions & 9 deletions src/views/proxies/AddView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,9 @@
</n-space>
<div>
<n-tag class="tip-tag" style="transform: translateY(-0.3rem)" type="info">
<span v-if="serverValue[proxyInfo.nodeId].attribute.verificationLevel === 0">
二级认证
</span>
<span v-else-if="serverValue[proxyInfo.nodeId].attribute.verificationLevel === 1">
一级认证
</span>
<span v-else>其他认证</span>
<span v-if="serverValue[proxyInfo.nodeId].attribute.china">一级认证</span>
<span v-else>二级认证</span>
<!-- <span v-else>其他认证</span>-->
</n-tag>
<n-tag
class="tip-tag"
Expand Down Expand Up @@ -160,7 +156,6 @@ const serverValue = ref([
hostname: '',
status: 0,
attribute: {
verificationLevel: -1,
china: false,
allowBigTraffic: false,
allowUdp: false,
Expand Down Expand Up @@ -382,7 +377,6 @@ onMounted(async () => {
hostname: s.hostname,
status: s.status,
attribute: {
verificationLevel: s.attribute.verification_level,
china: s.attribute.china,
allowBigTraffic: s.attribute.allow_big_traffic,
allowUdp: s.attribute.allow_udp,
Expand Down
1 change: 0 additions & 1 deletion src/views/proxies/ProxiesView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,6 @@ async function initList() {
hostname: s.hostname,
status: s.status,
attribute: {
verificationLevel: s.attribute.verification_level,
china: s.attribute.china,
allowBigTraffic: s.attribute.allow_big_traffic,
allowUdp: s.attribute.allow_udp,
Expand Down

0 comments on commit b5e450a

Please sign in to comment.