From 17c647a496536571fdb30e14298ed54c7c25dbda Mon Sep 17 00:00:00 2001 From: LiLongLong <13717757313@163.com> Date: Fri, 18 Apr 2025 16:35:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components.d.ts | 4 ---- src/utils/getServerInfo.ts | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/components.d.ts b/components.d.ts index e21917d..35b2198 100644 --- a/components.d.ts +++ b/components.d.ts @@ -10,11 +10,7 @@ declare module 'vue' { ElButton: typeof import('element-plus/es')['ElButton'] ElFooter: typeof import('element-plus/es')['ElFooter'] ElHeader: typeof import('element-plus/es')['ElHeader'] - ElIcon: typeof import('element-plus/es')['ElIcon'] - ElInput: typeof import('element-plus/es')['ElInput'] ElPopover: typeof import('element-plus/es')['ElPopover'] - ElTable: typeof import('element-plus/es')['ElTable'] - ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] ErrorModal: typeof import('./src/components/dialogs/ErrorModal.vue')['default'] Keyboard: typeof import('./src/components/Keyboard.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] diff --git a/src/utils/getServerInfo.ts b/src/utils/getServerInfo.ts index 774e992..8b68ac0 100644 --- a/src/utils/getServerInfo.ts +++ b/src/utils/getServerInfo.ts @@ -4,7 +4,7 @@ export function getServerInfo(wsPath: string = '/api/v1/app/ws/state') { // 获取主机名(IP 或域名)和端口号 const host = url.hostname // 例如: "192.168.1.100" 或 "localhost" - const port = '8082' // 使用固定的后端端口;由于本地开发时,8080被占用导致ws连接失败,所以使用8082 + const port = '8888' // 使用固定的后端端口;由于本地开发时,8080被占用导致ws连接失败,所以使用8082 // 构建 WebSocket URL const wsProtocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:'