修改课程记录bug

This commit is contained in:
田岩
2025-09-16 14:33:42 +08:00
parent 5d1ba8a22e
commit 7f3b3829a2
10 changed files with 81 additions and 128 deletions
+2
View File
@@ -15,6 +15,7 @@ export const useSocketStore = defineStore('socketStore',{
},
actions:{
creatSocket(url = '/trastudy/trasoket/open?summary='){
console.log('打开websocket');
if(this.SocketObj && this.SocketObj?.close && !this.SocketObj?.isClose) {
return
}
@@ -25,6 +26,7 @@ export const useSocketStore = defineStore('socketStore',{
this.SocketObj = new SocketClass(_baseUrl + url + getToken());
},
closeSocket() {
console.log('关闭websocket');
if(!(this.SocketObj && this.SocketObj?.close)) return
this.SocketObj && this.SocketObj.close()
},