修改编译问题,及显示问题

This commit is contained in:
lijun 2026-01-17 17:44:15 +08:00
parent 09d5c69072
commit fcb81756e2
2 changed files with 5 additions and 7 deletions

2
components.d.ts vendored
View File

@ -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']

View File

@ -19,13 +19,13 @@
<div class="server-info">
<div class="server-header">
<el-icon class="server-icon"><Monitor /></el-icon>
<h3>{{ server.name || server.name || 'VPN服务器' }}</h3>
<h3>{{ server.name || 'VPN服务器' }}</h3>
</div>
<div class="server-details">
<div class="detail-item">
<span class="label">IP地址:</span>
<span class="value">{{ server.server_ip || server.server_ip || 'N/A' }}</span>
<span class="value">{{ server.server_ip || 'N/A' }}</span>
</div>
<div class="detail-item" v-if="server.protocol">
<span class="label">协议:</span>
@ -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<typeof setInterval> | null = null
let serverListTimerId: ReturnType<typeof setInterval> | null = null
const clientUrls = ref<ClientUrl[]>([])
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 = ''