@@ -307,7 +307,7 @@ watch(() => state.activeTab, (n) => {
}
})
const initWS = () => {
- const ws: any = new WebSocket('/ws-api/smart-ws?userId=1388061846031220738')
+ const ws: any = new WebSocket(`ws://${location.host}/ws-api/smart-ws?userId=${AppStore.userInfo.id}`)
let sessionId = ''
let lastTabParams = ''
let lastMainParams = ''
@@ -454,7 +454,7 @@ const initWS = () => {
text: '搜索服务连接中……',
background: ThemeStore.loadingBg
let lastCountParams = ''
let lastCountStep = 0