fix: 修改环境变量类型原因导致websocket无法关闭问题

Signed-off-by: Lau <1807121535@qq.com>
This commit is contained in:
Lau
2023-11-16 03:25:35 +00:00
committed by Gitee
parent 9e89ab5bae
commit d034236ce3
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ let socketError = 0 as number; // 错误次数
// 初始化socket
export const initWebSocket = (url: any) => {
if (!import.meta.env.VITE_APP_WEBSOCKET) {
if (import.meta.env.VITE_APP_WEBSOCKET === 'false') {
return;
}
socketUrl = url;