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 = ''