细节优化

This commit is contained in:
kron
2025-06-29 12:33:39 +08:00
parent 35107c00b4
commit a4e62f0911

View File

@@ -263,14 +263,6 @@ async function onReceiveMessage(messages = []) {
});
}
const onLeaveRoom = () => {
if (owner.value.id === user.value.id) {
showModal.value = true;
} else {
uni.navigateBack();
}
};
const destroyRoom = async () => {
if (roomNumber.value) await destroyRoomAPI(roomNumber.value);
};
@@ -293,7 +285,7 @@ onUnmounted(() => {
</script>
<template>
<Container title="对战" :onBack="onLeaveRoom">
<Container title="对战" :onBack="() => (showModal = true)">
<view class="standby-phase" v-if="step === 1">
<Guide>
<view :style="{ display: 'flex', flexDirection: 'column' }">