From 5d44f9e23124f05b0906efd754ba7f8fac1f7cdd Mon Sep 17 00:00:00 2001 From: Ai3_刘小龙 <wisty0317@163.com> Date: 星期三, 20 十二月 2023 14:26:49 +0800 Subject: [PATCH] update src/views/system/dept/index.vue. append-to-body --- src/utils/websocket.ts | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/websocket.ts b/src/utils/websocket.ts index a2fcee7..7add725 100644 --- a/src/utils/websocket.ts +++ b/src/utils/websocket.ts @@ -20,7 +20,7 @@ import { getToken } from '@/utils/auth'; import useNoticeStore from '@/store/modules/notice'; -import { ElNotification } from "element-plus"; +import { ElNotification } from 'element-plus'; const { addNotice } = useNoticeStore(); @@ -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; @@ -135,7 +135,7 @@ message: e.data, type: 'success', duration: 3000 - }) + }); return e.data; }; }; -- Gitblit v1.9.3