新增课程图片

This commit is contained in:
yanghang
2025-07-10 14:29:54 +08:00
parent 991ace03dc
commit 1cd8914074
2 changed files with 2 additions and 2 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

+2 -2
View File
@@ -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