Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into preview
Browse files Browse the repository at this point in the history
  • Loading branch information
feiyuchuixue committed Jan 9, 2025
2 parents 7dbf2b5 + 3baa603 commit 5fe4cac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/stores/modules/socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import { useAuthStore } from '@/stores/modules/auth';

// 是否使用socket 当 import.meta.env.VITE_SOCKET_URL 不为空时,启用websocket
const useSocket = Object.prototype.hasOwnProperty.call(import.meta.env, 'VITE_SOCKET_URL');
const socketUrl = import.meta.env.VITE_SOCKET_URL;
//const socketUrl = import.meta.env.VITE_SOCKET_URL;
const socketUrl = new URL(import.meta.env.VITE_SOCKET_URL, window.location.origin).toString();
const MAX_RECONNECT_COUNT = 10;

/**
Expand Down

0 comments on commit 5fe4cac

Please sign in to comment.