File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -811,6 +811,10 @@ export default {
811811 // 先加载配置,再启动会话检查(自动检测当前是否在晚自习时段并自动开始)
812812 this .loadNoiseSessionConfig ().then (() => {
813813 this .startSessionCheck ()
814+ // autoStart: 不在自习时段时也自动开始监测(但不记录会话)
815+ if (getSetting (' noiseMonitor.autoStart' ) && ! this .noiseMonitoring ) {
816+ this .startNoise ()
817+ }
814818 })
815819 }
816820 },
Original file line number Diff line number Diff line change @@ -103,13 +103,13 @@ const settingsDefinitions = {
103103 // 噪音监测设置
104104 "noiseMonitor.enabled" : {
105105 type : "boolean" ,
106- default : false ,
107- description : "启用环境噪音监测卡片 " ,
106+ default : true ,
107+ description : "启用环境噪音监测 " ,
108108 icon : "mdi-microphone" ,
109109 } ,
110110 "noiseMonitor.autoStart" : {
111111 type : "boolean" ,
112- default : false ,
112+ default : true ,
113113 description : "打开页面时自动开始监测" ,
114114 icon : "mdi-play-circle-outline" ,
115115 } ,
You can’t perform that action at this time.
0 commit comments