core&ui: add all enroll users status in training (#456)

Co-authored-by: undefined <i@undefined.moe>
This commit is contained in:
pandaandundefined authored and GitHub committed 2022-11-27 03:00:10 +08:00
1 parent d02934f766
commit c2f5541e83
12 files changed
+312 -156

No files matched your search

@@ -39,7 +39,7 @@ const onmessage = (msg) => {
const url = new URL(`${UiContext.ws_prefix}home/messages-conn`, window.location.href);
// TODO handle a better way for cookie
url.searchParams.append('sid', document.cookie);
if (url.host !== window.location.host) url.searchParams.append('sid', document.cookie.split('sid=')[1].split(';')[0]);
const endpoint = url.toString().replace('http', 'ws');
const initWorkerMode = () => {