FengChaoYu %!s(int64=3) %!d(string=hai) anos
pai
achega
3336725232
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/layout/components/Navbar.vue

+ 1 - 1
src/layout/components/Navbar.vue

@@ -380,7 +380,7 @@ export default {
       // WebSocket与普通的请求所用协议有所不同,ws等同于http,wss等同于https
       // WebSocket与普通的请求所用协议有所不同,ws等同于http,wss等同于https
       var userId = this.$store.getters.userid;
       var userId = this.$store.getters.userid;
 
 
-      var url = process.env.VUE_APP_BASE_API.replace("https://","wss://").replace("http://","ws://")+"websocket/"+userId;
+      var url = process.env.VUE_APP_BASE_API.replace("https://","wss://").replace("http://","ws://").replace("api","supply")+"websocket/"+userId;
       console.debug(userId, url);
       console.debug(userId, url);
       let token = getToken()
       let token = getToken()
       this.websock = new WebSocket(url, [token]);
       this.websock = new WebSocket(url, [token]);