完成获胜页面UI和一些优化
This commit is contained in:
@@ -8,7 +8,7 @@ import ScorePanel2 from "@/components/ScorePanel2.vue";
|
||||
import ScoreResult from "@/components/ScoreResult.vue";
|
||||
import SButton from "@/components/SButton.vue";
|
||||
import { createPractiseAPI } from "@/apis";
|
||||
import { MESSAGETYPES } from "@/constants";
|
||||
import { MESSAGETYPES, roundsName } from "@/constants";
|
||||
import websocket from "@/websocket";
|
||||
const start = ref(false);
|
||||
const showScore = ref(false);
|
||||
@@ -42,12 +42,6 @@ const onReady = async () => {
|
||||
});
|
||||
};
|
||||
|
||||
const roundsName = {
|
||||
1: "一",
|
||||
2: "二",
|
||||
3: "三",
|
||||
};
|
||||
|
||||
onUnmounted(() => {
|
||||
websocket.closeWebSocket();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user