From 971b4f60ec3a912cb8a507b1cb49b2fefe1b75c4 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期日, 24 十一月 2024 18:56:49 +0800 Subject: [PATCH] !155 refactor: 直接从@/lang/*.ts后缀的i18n文件中读取各国语言包信息 Merge pull request !155 from QianRj/优化i18n --- src/utils/sse.ts | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/utils/sse.ts b/src/utils/sse.ts index 0f74d0e..5234648 100644 --- a/src/utils/sse.ts +++ b/src/utils/sse.ts @@ -4,7 +4,11 @@ // 鍒濆鍖� export const initSSE = (url: any) => { - url = url + '?Authorization=Bearer ' + getToken() + '&clientid=' + import.meta.env.VITE_APP_CLIENT_ID + if (import.meta.env.VITE_APP_SSE === 'false') { + return; + } + + url = url + '?Authorization=Bearer ' + getToken() + '&clientid=' + import.meta.env.VITE_APP_CLIENT_ID; const { data, error -- Gitblit v1.9.3