From 6a7ec8116847cdec2b75295708b773b1a9c57bcf Mon Sep 17 00:00:00 2001
From: 棉花 <12559203+radish-hi_0@user.noreply.gitee.com>
Date: 星期五, 08 十二月 2023 17:55:11 +0800
Subject: [PATCH] fix: 删除重复环境变量ElUploadInstance

---
 src/utils/websocket.ts |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/utils/websocket.ts b/src/utils/websocket.ts
index a2fcee7..a4529f9 100644
--- a/src/utils/websocket.ts
+++ b/src/utils/websocket.ts
@@ -33,7 +33,7 @@
 
 // 鍒濆鍖杝ocket
 export const initWebSocket = (url: any) => {
-  if (import.meta.env.VITE_APP_WEBSOCKET) {
+  if (import.meta.env.VITE_APP_WEBSOCKET === 'false') {
     return;
   }
   socketUrl = url;

--
Gitblit v1.9.3