From 6f4891d677aa15e85263a5d274d436b2add51beb Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期四, 17 十月 2024 18:15:18 +0800 Subject: [PATCH] update 优化 流程提交用户id使用字符串提交避免雪花id失真问题 --- src/utils/sse.ts | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/utils/sse.ts b/src/utils/sse.ts index 0f74d0e..9174f0d 100644 --- a/src/utils/sse.ts +++ b/src/utils/sse.ts @@ -4,6 +4,10 @@ // 鍒濆鍖� export const initSSE = (url: any) => { + if (import.meta.env.VITE_APP_SSE === 'false') { + return; + } + url = url + '?Authorization=Bearer ' + getToken() + '&clientid=' + import.meta.env.VITE_APP_CLIENT_ID const { data, -- Gitblit v1.9.3