部分问题修复
This commit is contained in:
1
App.vue
1
App.vue
@@ -9,6 +9,7 @@ import appConfig from '@/config/appConfig.js';
|
||||
import { provide, onMounted } from 'vue';
|
||||
import WebsocketUtil from '@/commons/utils/websocket.js';
|
||||
|
||||
console.log('appConfig.wss',appConfig.wss);
|
||||
const websocketUtil = new WebsocketUtil(appConfig.wss, 5000); // 创建 WebSocket 工具类实例
|
||||
provide('websocketUtil', websocketUtil); // 提供给所有子组件
|
||||
onMounted(() => {});
|
||||
|
||||
Reference in New Issue
Block a user