Skip to content

Commit ba439a1

Browse files
committed
enhance: add receiveOfflineMsg configuration and UI toggle for offline message reception
1 parent 6377445 commit ba439a1

3 files changed

Lines changed: 15 additions & 1 deletion

File tree

src/common/default_config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,6 @@
3434
"musicSignUrl": "https://llob.linyuchen.net/sign/music",
3535
"msgCacheExpire": 120,
3636
"onlyLocalhost": true,
37-
"ffmpeg": ""
37+
"ffmpeg": "",
38+
"receiveOfflineMsg": false
3839
}

src/webui/FE/App.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ const defaultConfig: Config = {
9292
token: '',
9393
port: 3080,
9494
},
95+
receiveOfflineMsg: false
9596
}
9697
9798
const form = ref(JSON.parse(JSON.stringify(defaultConfig)))

src/webui/FE/components/OtherConfigForm.vue

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,16 @@
4646
<el-input-number v-model="form.msgCacheExpire" :min="1" :max="86400" />
4747
</el-form-item>
4848
<el-row :gutter="16">
49+
<el-col :span="12">
50+
<el-form-item label="接收离线消息">
51+
<el-switch v-model="form.receiveOfflineMsg" />
52+
<el-tooltip content="开启后将接收离线消息" placement="top">
53+
<el-icon class="info-icon">
54+
<QuestionFilled />
55+
</el-icon>
56+
</el-tooltip>
57+
</el-form-item>
58+
</el-col>
4959
<el-col :span="12">
5060
<el-form-item label="只监听本地地址">
5161
<el-switch v-model="form.onlyLocalhost" />
@@ -56,6 +66,8 @@
5666
</el-tooltip>
5767
</el-form-item>
5868
</el-col>
69+
</el-row>
70+
<el-row :gutter="16">
5971
<el-col :span="12">
6072
<el-form-item label="webui 密码">
6173
<el-input v-model="form.webui.token"

0 commit comments

Comments
 (0)