|
@ -5,7 +5,7 @@ import router from './router/index.js' |
|
|
const app = createApp(App) |
|
|
const app = createApp(App) |
|
|
|
|
|
|
|
|
// 初始化 WebSocket 并挂载到 Vue 实例
|
|
|
// 初始化 WebSocket 并挂载到 Vue 实例
|
|
|
const ws = new WebSocket('ws://localhost:8081') |
|
|
const ws = new WebSocket('ws://139.224.164.94:8081') |
|
|
app.config.globalProperties.$ws = ws |
|
|
app.config.globalProperties.$ws = ws |
|
|
|
|
|
|
|
|
app.use(router) |
|
|
app.use(router) |
|
|