diff --git a/.env b/.env index f6cfe6f..95809c2 100644 --- a/.env +++ b/.env @@ -1,3 +1,4 @@ VITE_BASE_URL=/api -VITE_SOCKET_URL=wss://k8s-horse-gateway.mashibing.cn/ws +#VITE_SOCKET_URL=wss://k8s-horse-gateway.mashibing.cn/ws +VITE_SOCKET_URL=ws://192.168.10.93:8090/ws VITE_REQUEST_TIMEOUT=5000 diff --git a/src/layouts/default.vue b/src/layouts/default.vue index da1ca78..f7a0f8f 100644 --- a/src/layouts/default.vue +++ b/src/layouts/default.vue @@ -22,8 +22,8 @@ import LayoutMain from './components/main.vue'; import LayoutMenu from './components/menu.vue'; import LayoutTabs from './components/tabs.vue'; - // const store = useStore(); - // store.dispatch('chat/connect'); + const store = useStore(); + store.dispatch('chat/connect');