|
@@ -404,7 +404,15 @@ onMounted(() => {
|
|
|
if (index) {
|
|
|
state.cascaderParams.value = index.split(',').map(v => Number(v))
|
|
|
}
|
|
|
+ let loading = null
|
|
|
const ws: any = new WebSocket('/ws-api/smart-ws?userId=1388061846031220738')
|
|
|
+ ws.onerror = () => {
|
|
|
+ loading = ElLoading.service({
|
|
|
+ lock: true,
|
|
|
+ text: '智搜服务连接失败……',
|
|
|
+ background: 'rgba(0, 0, 0, 0.7)',
|
|
|
+ })
|
|
|
+ }
|
|
|
let sessionId = ''
|
|
|
let lastCountParams = ''
|
|
|
let lastCountStep = 0
|