From fcb81756e2fb89118c1c99f349cdd0b5c187d7c3 Mon Sep 17 00:00:00 2001 From: lijun Date: Sat, 17 Jan 2026 17:44:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BC=96=E8=AF=91=E9=97=AE?= =?UTF-8?q?=E9=A2=98=EF=BC=8C=E5=8F=8A=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components.d.ts | 2 -- src/views/system/vpn-online-connect.vue | 10 +++++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/components.d.ts b/components.d.ts index a856585..7df6600 100644 --- a/components.d.ts +++ b/components.d.ts @@ -52,7 +52,6 @@ declare module '@vue/runtime-core' { ElRow: typeof import('element-plus/es')['ElRow'] ElScrollbar: typeof import('element-plus/es')['ElScrollbar'] ElSelect: typeof import('element-plus/es')['ElSelect'] - ElSelector: typeof import('element-plus/es')['ElSelector'] ElSlider: typeof import('element-plus/es')['ElSlider'] ElSpace: typeof import('element-plus/es')['ElSpace'] ElStatistic: typeof import('element-plus/es')['ElStatistic'] @@ -73,7 +72,6 @@ declare module '@vue/runtime-core' { ElTourStep: typeof import('element-plus/es')['ElTourStep'] ElTransfer: typeof import('element-plus/es')['ElTransfer'] ElTree: typeof import('element-plus/es')['ElTree'] - ElTreeV2: typeof import('element-plus/es')['ElTreeV2'] ElUpload: typeof import('element-plus/es')['ElUpload'] ElWatermark: typeof import('element-plus/es')['ElWatermark'] Header: typeof import('./src/components/header.vue')['default'] diff --git a/src/views/system/vpn-online-connect.vue b/src/views/system/vpn-online-connect.vue index f836846..1ec5b25 100644 --- a/src/views/system/vpn-online-connect.vue +++ b/src/views/system/vpn-online-connect.vue @@ -19,13 +19,13 @@
-

{{ server.name || server.name || 'VPN服务器' }}

+

{{ server.name || 'VPN服务器' }}

IP地址: - {{ server.server_ip || server.server_ip || 'N/A' }} + {{ server.server_ip || 'N/A' }}
协议: @@ -218,8 +218,8 @@ const loading = ref(false) const connectingServers = ref<(string | number)[]>([]) const clientIsConnectServerID = ref('') const showDownloadDialog = ref(false) -let statusTimerId: number | null = null -let serverListTimerId: number | null = null +let statusTimerId: ReturnType | null = null +let serverListTimerId: ReturnType | null = null const clientUrls = ref([]) const showOnlineInfoDialog = ref(false) const onlineInfoLoading = ref(false) @@ -275,7 +275,7 @@ const LocalClientStatus = async () => { let data = response["data"] if (data && data["status"] == 2001) { clientIsConnectServerID.value = data["online_info"]["server_id"] - onlineInfoData.value = response["data"] || {} + onlineInfoData.value = data || {} console.log('clientIsConnectServerID:', clientIsConnectServerID.value) }else{ clientIsConnectServerID.value = ''