diff --git a/src/mobile/components/MobileLayout.vue b/src/mobile/components/MobileLayout.vue index 38f38083..54795f20 100644 --- a/src/mobile/components/MobileLayout.vue +++ b/src/mobile/components/MobileLayout.vue @@ -1,20 +1,6 @@ @@ -34,18 +20,6 @@ import { audioManager } from '@/utils/AudioManager' import { isMobile, isWindows } from '@/utils/PlatformConstants' import { invokeSilently } from '@/utils/TauriInvokeHandler' import { useRoute } from 'vue-router' -interface MobileLayoutProps { - /** 是否应用顶部安全区域 */ - safeAreaTop?: boolean - /** 是否应用底部安全区域 */ - safeAreaBottom?: boolean - /** 背景图片URL */ - backgroundImage?: string - /** 顶部安全区域的自定义 CSS class */ - topSafeAreaClass?: string - /** 底部安全区域的自定义 CSS class */ - bottomSafeAreaClass?: string -} const route = useRoute() const chatStore = useChatStore() @@ -70,35 +44,6 @@ const playMessageSound = async () => { } } -const props = withDefaults(defineProps(), { - safeAreaTop: true, - safeAreaBottom: true, - backgroundImage: '', - topSafeAreaClass: '', - bottomSafeAreaClass: '' -}) - -// 计算背景图样式 -const backgroundImageStyle = computed(() => { - const styles: Record = {} - - // 设置背景图片 - if (props.backgroundImage) { - // 处理路径别名 @/ 转换为 /src/ - let imagePath = props.backgroundImage - if (imagePath.startsWith('@/')) { - imagePath = imagePath.replace('@/', '/src/') - } - styles.backgroundImage = `url(${imagePath})` - } - return styles -}) - -const mergedStyle = computed(() => ({ - backgroundColor: 'var(--center-bg-color)', - ...backgroundImageStyle.value -})) - /** * 从消息中提取文件信息并添加到 file store */ @@ -231,6 +176,11 @@ useMitt.on(WsResponseMessageType.RECEIVE_MESSAGE, async (data: MessageType) => { }) + + diff --git a/src/mobile/layout/chat-room/ChatRoomLayout.vue b/src/mobile/layout/chat-room/ChatRoomLayout.vue index 522e6bac..5966cd72 100644 --- a/src/mobile/layout/chat-room/ChatRoomLayout.vue +++ b/src/mobile/layout/chat-room/ChatRoomLayout.vue @@ -1,5 +1,5 @@ - + diff --git a/src/mobile/layout/friends/FriendsLayout.vue b/src/mobile/layout/friends/FriendsLayout.vue index a244bb1d..8efa9f93 100644 --- a/src/mobile/layout/friends/FriendsLayout.vue +++ b/src/mobile/layout/friends/FriendsLayout.vue @@ -1,5 +1,5 @@