添加还在游戏中提示

This commit is contained in:
kron
2025-07-02 17:16:56 +08:00
parent 997e2ee756
commit 5c5b72d556
4 changed files with 28 additions and 5 deletions

View File

@@ -18,7 +18,11 @@ const warnning = ref("");
const roomNumber = ref("");
const enterRoom = debounce(async () => {
// const isGaming = await isGamingAPI();
const isGaming = await isGamingAPI();
if (isGaming) {
uni.$showHint("当前正在对战中");
return;
}
if (!roomNumber.value) {
warnning.value = "请输入房间号";
showModal.value = true;