修改页面样式 调整查询条件

This commit is contained in:
guanj
2026-05-22 09:58:07 +08:00
parent 120892808b
commit abfdf29a38
35 changed files with 510 additions and 578 deletions

View File

@@ -1,4 +1,3 @@
import { Flag } from '@element-plus/icons-vue/dist/types'
import { ElMessage, EVENT_CODE } from 'element-plus'
// 定义消息类型,用于类型检查
@@ -44,7 +43,9 @@ export default class SocketService {
console.log('您的浏览器不支持WebSocket')
return
}
if (url == 'null' || url == null) return
console.log("🚀 ~ SocketService ~ connect ~ url:", url)
if (url === null || (typeof url === 'string' && url.includes('null'))) return;
setTimeout(() => {
this.ws = new WebSocket(url)