Kaynağa Gözat

线上websockit地址修改

jackson 11 ay önce
ebeveyn
işleme
bbd43667ba
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      src/config/index.ts

+ 1 - 1
src/config/index.ts

@@ -1,4 +1,4 @@
 export default {
   baseUrl: import.meta.env.MODE === 'production' ? '' : 'http://20.189.74.163:3111',
-  socketUrl: 'ws://20.189.74.163:3102/sub'
+  socketUrl: import.meta.env.MODE === 'production' ? 'wss://20.189.74.163:3102/sub' : 'ws://20.189.74.163:3102/sub'
 }