Skip to content

Commit 26ec3c9

Browse files
committed
打印调试信息
1 parent fd8179b commit 26ec3c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/ws.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const collectibles = ref([]);
1313
* @param {boolean} checkGame if set true,while game is not ready,do nothing
1414
*/
1515
export const emit = (topic, message, checkGame = true) => {
16-
// console.log(message)
16+
console.log(message)
1717
// console.log(socket !== null, socket.readyState === 1, isConsoleReady.value, (!checkGame || isGameReady.value))
1818
if (socket !== null && socket.readyState === 1 && isConsoleReady.value && (!checkGame || isGameReady.value)) {
1919
socket.send(JSON.stringify({
@@ -138,4 +138,4 @@ export const init = () => {
138138
}
139139
}
140140

141-
-init();
141+
init();

0 commit comments

Comments
 (0)