update 优化 调整默认推送使用SSE
This commit is contained in:
@ -70,7 +70,10 @@ onMounted(() => {
|
||||
onMounted(() => {
|
||||
let protocol = window.location.protocol === 'https:' ? 'wss://' : 'ws://';
|
||||
initWebSocket(protocol + window.location.host + import.meta.env.VITE_APP_BASE_API + '/resource/websocket');
|
||||
initSSE(import.meta.env.VITE_APP_BASE_API + '/sse')
|
||||
});
|
||||
|
||||
onMounted(() => {
|
||||
initSSE(import.meta.env.VITE_APP_BASE_API + '/resource/sse')
|
||||
});
|
||||
|
||||
const handleClickOutside = () => {
|
||||
|
Reference in New Issue
Block a user