fix:bug解决

This commit is contained in:
李伊帆
2026-10-28 10:36:39 +08:00
parent c369127166
commit 91bca314ba
57 changed files with 2839 additions and 384 deletions

View File

@@ -1,5 +1,5 @@
<template>
<view class="device-page">
<view class="device-page" :class="{ 'device-page--scroll-lock': homePickerOpen }">
<device-header
:home-name="homeName"
:home-id="homeId"
@@ -9,6 +9,7 @@
@notify="onNotify"
@add-device="onStartBind"
@scan="onScan"
@picker-open-change="homePickerOpen = $event"
/>
<room-tabs
:rooms="rooms"
@@ -43,6 +44,7 @@
</template>
<script setup lang="ts">
import { ref } from 'vue'
import { useTabPage } from '@/hooks/use-tab-page'
import DeviceEmpty from './components/device-empty/index.vue'
import DeviceHeader from './components/device-header/index.vue'
@@ -54,6 +56,7 @@ import RoomTabs from './components/room-tabs/index.vue'
import { useDevice } from './use-device'
const { tabCurrent } = useTabPage('device')
const homePickerOpen = ref(false)
const {
homeName,