新增课程图片
This commit is contained in:
+2
-2
@@ -14,7 +14,7 @@ export const useSocketStore = defineStore('socketStore',{
|
||||
}
|
||||
},
|
||||
actions:{
|
||||
creatSocket(){
|
||||
creatSocket(url = '/trastudy/trasoket/open?summary='){
|
||||
if(this.SocketObj && this.SocketObj?.close && !this.SocketObj?.isClose) {
|
||||
return
|
||||
}
|
||||
@@ -22,7 +22,7 @@ export const useSocketStore = defineStore('socketStore',{
|
||||
this.SocketObj.isClose = false
|
||||
}
|
||||
let _baseUrl = get_base_url().split('http').join('ws')
|
||||
this.SocketObj = new SocketClass(_baseUrl + '/trastudy/trasoket/open?summary=' + getToken());
|
||||
this.SocketObj = new SocketClass(_baseUrl + url + getToken());
|
||||
},
|
||||
closeSocket() {
|
||||
if(!(this.SocketObj && this.SocketObj?.close)) return
|
||||
|
||||
Reference in New Issue
Block a user