退出房间优化

This commit is contained in:
kron
2025-06-17 16:42:53 +08:00
parent 67825d2b24
commit 9c6964597e
3 changed files with 61 additions and 8 deletions

View File

@@ -11,6 +11,10 @@ defineProps({
type: Number,
default: 0,
},
onBack: {
type: Function,
default: null,
},
});
const isIos = ref(true);
onMounted(() => {
@@ -22,7 +26,7 @@ onMounted(() => {
<template>
<view>
<AppBackground :type="bgType" />
<Header :title="title" />
<Header :title="title" :onBack="onBack" />
<view
class="content"
:style="{ height: `calc(100vh - ${isIos ? 105 : 95}px)` }"