update 优化 调整默认推送使用SSE

This commit is contained in:
疯狂的狮子Li
2024-07-26 16:24:40 +08:00
parent 425386f6f4
commit adadfcf8cb
4 changed files with 8 additions and 8 deletions

View File

@ -6,9 +6,6 @@ let message = '';
// 初始化
export const initSSE = (url: any) => {
if (import.meta.env.VITE_APP_WEBSOCKET === 'false') {
return;
}
url = url + '?Authorization=Bearer ' + getToken() + '&clientid=' + import.meta.env.VITE_APP_CLIENT_ID
const {
data,