修改之前注释内容,完善小程序文案和只显示位置

This commit is contained in:
HycJack
2026-05-06 03:54:42 +08:00
parent 1e7e7cc05e
commit 3866cfc84a
3 changed files with 7 additions and 8 deletions

View File

@@ -88,7 +88,7 @@ export default function Device() {
const nextValue = Boolean(e.detail?.value)
setSleepEnabled(nextValue)
Taro.showToast({
title: nextValue ? '休眠展示已开启' : '休眠展示已关闭',
title: nextValue ? '休眠已开启' : '休眠已关闭',
icon: 'none',
})
}
@@ -241,7 +241,7 @@ export default function Device() {
</View>
<View className='control-info'>
<Text className='control-name'></Text>
<Text className='control-detail'></Text>
<Text className='control-detail'></Text>
</View>
</View>
<Switch checked={sleepEnabled} onChange={handleSleepToggle} color='#FF8C42' />

View File

@@ -375,7 +375,7 @@ export default function Location() {
</View>
) : (
<>
<View className='mode-switch'>
{/* <View className='mode-switch'>
{MODE_OPTIONS.map((item) => (
<View
key={item.key}
@@ -388,7 +388,7 @@ export default function Location() {
<Text className='mode-chip-text'>{item.label}</Text>
</View>
))}
</View>
</View> */}
<View className='map-section'>
<Map