添加设备在线离线处理

This commit is contained in:
kron
2025-12-31 13:39:16 +08:00
parent 25f51ad53a
commit af852d9b59
8 changed files with 104 additions and 57 deletions

View File

@@ -20,9 +20,9 @@ onBeforeUnmount(() => {
</script>
<template>
<view class="container" :style="{ opacity: power > 0 ? 1 : 0 }">
<view class="container">
<image src="../static/b-power.png" mode="widthFix" />
<view>电量{{ power }}%</view>
<view>电量{{ power || 1 }}%</view>
</view>
</template>