功能完善

This commit is contained in:
kron
2025-07-01 00:25:17 +08:00
parent bd92c7c183
commit a03af4e58c
10 changed files with 202 additions and 47 deletions

View File

@@ -6,7 +6,7 @@ import Guide from "@/components/Guide.vue";
import SButton from "@/components/SButton.vue";
import SModal from "@/components/SModal.vue";
import CreateRoom from "@/components/CreateRoom.vue";
import { getRoomAPI, joinRoomAPI } from "@/apis";
import { getRoomAPI, joinRoomAPI, isGamingAPI } from "@/apis";
import useStore from "@/store";
import { storeToRefs } from "pinia";
const store = useStore();
@@ -18,6 +18,7 @@ const warnning = ref("");
const roomNumber = ref("");
const enterRoom = debounce(async () => {
// const isGaming = await isGamingAPI();
if (!roomNumber.value) {
warnning.value = "请输入房间号";
showModal.value = true;