Update RemoteDesktopModal.vue

This commit is contained in:
Baobhan Sith
2025-04-29 06:55:10 +08:00
parent c02c5138b8
commit abb2e28497
@@ -45,7 +45,7 @@ if (window.location.hostname === 'localhost') {
// 备选方案: 根据当前 window.location 为生产环境或其他环境构建 URL // 备选方案: 根据当前 window.location 为生产环境或其他环境构建 URL
const wsProtocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:'; const wsProtocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
const wsHostAndPort = window.location.host; const wsHostAndPort = window.location.host;
backendBaseUrl = `${wsProtocol}//${wsHostAndPort}/ws/`; backendBaseUrl = `${wsProtocol}//${wsHostAndPort}/ws`;
console.log(`[RDP 模态框] 使用生产环境 WebSocket 基础 URL (来自 window.location): ${backendBaseUrl}`); console.log(`[RDP 模态框] 使用生产环境 WebSocket 基础 URL (来自 window.location): ${backendBaseUrl}`);
} }