add config update API

This commit is contained in:
RockYang
2023-03-18 20:20:00 +08:00
parent 396b7440fa
commit 59782e9e57
9 changed files with 148 additions and 35 deletions

View File

@@ -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 连接已打开');
});