mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-12 12:13:46 +08:00
add config update API
This commit is contained in:
@@ -1 +1 @@
|
||||
VUE_APP_API_HOST=127.0.0.1:5678
|
||||
VUE_APP_WS_HOST=ws://127.0.0.1:5678
|
||||
@@ -99,7 +99,7 @@ export default defineComponent({
|
||||
window.addEventListener('resize', this.windowResize);
|
||||
|
||||
// 初始化 WebSocket 对象
|
||||
const socket = new WebSocket('ws://172.22.11.200:5678/api/chat');
|
||||
const socket = new WebSocket(process.env.VUE_APP_WS_HOST+'/api/chat');
|
||||
socket.addEventListener('open', () => {
|
||||
console.log('WebSocket 连接已打开');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user