mirror of
https://gitee.com/nicefold/seewis-soybean-plus.git
synced 2026-10-14 10:02:13 +08:00
optimize(projects): 优化系统代码质量
This commit is contained in:
+6
-2
@@ -4,8 +4,12 @@ import useNoticeStore from '@/store/modules/notice';
|
||||
import { $t } from '@/locales';
|
||||
import { localStg } from './storage';
|
||||
|
||||
// 初始化
|
||||
export const initSSE = (url: any) => {
|
||||
/**
|
||||
* 初始化 SSE
|
||||
*
|
||||
* @param url - SSE 地址
|
||||
*/
|
||||
export const initSSE = (url: string) => {
|
||||
const token = localStg.get('token');
|
||||
if (import.meta.env.VITE_APP_SSE === 'N' || !token) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user