x1ongzhu 1 tahun lalu
induk
melakukan
26d11612a2
3 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 1 1
      .env.development
  2. 1 1
      src/views/PhishesView.vue
  3. 1 1
      src/views/RatView.vue

+ 1 - 1
.env.development

@@ -1,4 +1,4 @@
 VITE_BASE_URL=/
 VITE_API_BASE_URL=http://localhost:3333/api
-VITE_WS_URL=ws://localhost:3333
+VITE_WS_URL=ws://localhost:3333/
 VITE_IMAGE_PREFIX=https://zm-shorts.oss-cn-hangzhou.aliyuncs.com

+ 1 - 1
src/views/PhishesView.vue

@@ -103,7 +103,7 @@ const timeFormatter = useTimeFormatter()
 const table = ref(null)
 const { play: playSound } = useSound(buttonSfx)
 
-const socket = io(import.meta.env.VITE_WS_URL + '/paymentManage', {
+const socket = io(import.meta.env.VITE_WS_URL + 'paymentManage', {
     path: '/ws',
     transports: ['websocket']
 })

+ 1 - 1
src/views/RatView.vue

@@ -70,7 +70,7 @@ const socket = ref(null)
 const smsList = ref([])
 const showSmsList = ref(false)
 onMounted(() => {
-    socket.value = io(import.meta.env.VITE_WS_URL + '/admin', {
+    socket.value = io(import.meta.env.VITE_WS_URL + 'admin', {
         path: '/ws',
         transports: ['websocket']
     })