diff --git a/src/static/images/course/refresh-white.png b/src/static/images/course/refresh-white.png new file mode 100644 index 00000000..554a24c3 Binary files /dev/null and b/src/static/images/course/refresh-white.png differ diff --git a/src/store/socket.js b/src/store/socket.js index 1438823a..c0aeb905 100644 --- a/src/store/socket.js +++ b/src/store/socket.js @@ -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