This commit is contained in:
杨航
2025-08-28 15:35:38 +08:00
parent 70a3d36c94
commit f181bc040c
5 changed files with 40 additions and 10 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ export const useSocketStore = defineStore('socketStore',{
if(this.SocketObj?.isClose){
this.SocketObj.isClose = false
}
let _baseUrl = get_base_url().split('http').join('ws')
let _baseUrl = get_base_url(url).split('http').join('ws')
this.SocketObj = new SocketClass(_baseUrl + url + getToken());
},
closeSocket() {