+nginx.conf; update scratchpad

This commit is contained in:
undefined committed 2020-07-16 15:18:55 +08:00
1 parent 6ad41dc2ae
commit 2d5eef8d08
28 files changed
+206 -230

No files matched your search

+1 -1
View File
@@ -167,7 +167,7 @@ const page = new NamedPage(['problem_detail', 'contest_detail_problem', 'homewor
React, render, unmountComponentAtNode, Provider, store,
} = await loadReactRedux(ScratchpadReducer);
const sock = new SockJs(Context.socketUrl);
const sock = new SockJs(`/conn/pretest?token=${UiContext.token}&pid=${Context.problemId}`);
sock.onmessage = (message) => {
const msg = JSON.parse(message.data);
store.dispatch({