功能完善
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user