Jelajahi Sumber

WS TS忽略

林旭祥 10 bulan lalu
induk
melakukan
f8a3043ecc
2 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 0
      src/types/socket.io-client.ts
  2. 0 1
      src/utils/ws.ts

+ 1 - 0
src/types/socket.io-client.ts

@@ -0,0 +1 @@
+declare module 'socket.io-client';

+ 0 - 1
src/utils/ws.ts

@@ -1,4 +1,3 @@
-// const router = useRouter();
 import io from 'socket.io-client';
 const address: any = import.meta.env.VITE_APP_BASE_API;
 const token: any = localStorage.getItem('token');