修改之前注释内容,完善小程序文案和只显示位置
This commit is contained in:
@@ -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' />
|
||||
|
||||
Reference in New Issue
Block a user