Skip to content

Commit

Permalink
fix: alarmOptionValue bug
Browse files Browse the repository at this point in the history
  • Loading branch information
JdaieLin committed Feb 21, 2021
1 parent aee4d5f commit 730ba4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion electron/src/renderer/components/MainWindow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@
console.log(msg, that.alarmOptionValue)
}
if (!msg.indexOf('auto_power_on: ')) {
that.alarmOptionValue = (msg.replace('auto_power_on: ', '').trim() === 'true') ? 2 : this.alarmOptionValue
that.alarmOptionValue = (msg.replace('auto_power_on: ', '').trim() === 'true') ? 2 : that.alarmOptionValue
console.log(msg, that.alarmOptionValue)
}
if (!msg.indexOf('rtc_alarm_time: ')) {
Expand Down
4 changes: 2 additions & 2 deletions electron/src/renderer/locale/zh-CN.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ module.exports = {
notCharging: '已接通电源',
chargeSetting: '充电设置',
chargingDesc: '电量低于指定值时启动充电',
enabled: '开启',
enabled: '定时开机',
disabled: '关闭',
onPowerRestore: '来电开机',
powerWakeDesc: '** 请使用两个独立的USB充电器分别为树莓派和PiSugar充电,并保持PiSugar的电源开关在打开状态,这样在外部电源恢复的时候会自动开机。',
powerWakeOffWarning: '您已关闭来电开机功能,请不要单独给树莓派外接电源。',
powerWakeOffTitle: '提示',
wakeUpFeature: '定时开机',
wakeUpFeature: '自动开机',
repeat: '重复',
repeatEveryday: '每天重复。',
repeatOn: '',
Expand Down

0 comments on commit 730ba4d

Please sign in to comment.