CzRger преди 1 месец
родител
ревизия
d611a8effe
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1 1
      src/views/web/archive/index.vue
  2. 1 1
      src/views/web/list/index.vue

+ 1 - 1
src/views/web/archive/index.vue

@@ -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 = ''

+ 1 - 1
src/views/web/list/index.vue

@@ -454,7 +454,7 @@ const initWS = () => {
     text: '搜索服务连接中……',
     background: ThemeStore.loadingBg
   })
-  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 lastCountParams = ''
   let lastCountStep = 0