feat: no notify when ws disconnect

This commit is contained in:
Nya Candy 2024-01-04 15:13:51 +08:00 committed by laoXong
parent 70045735a7
commit c922a2479b
2 changed files with 2 additions and 1 deletions

View File

@ -173,6 +173,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</div> </div>
<MkSelect v-model="serverDisconnectedBehavior"> <MkSelect v-model="serverDisconnectedBehavior">
<template #label>{{ i18n.ts.whenServerDisconnected }}</template> <template #label>{{ i18n.ts.whenServerDisconnected }}</template>
<option :value="null">什么都不做</option>
<option value="reload">{{ i18n.ts._serverDisconnectedBehavior.reload }}</option> <option value="reload">{{ i18n.ts._serverDisconnectedBehavior.reload }}</option>
<option value="dialog">{{ i18n.ts._serverDisconnectedBehavior.dialog }}</option> <option value="dialog">{{ i18n.ts._serverDisconnectedBehavior.dialog }}</option>
<option value="quiet">{{ i18n.ts._serverDisconnectedBehavior.quiet }}</option> <option value="quiet">{{ i18n.ts._serverDisconnectedBehavior.quiet }}</option>

View File

@ -206,7 +206,7 @@ export const defaultStore = markRaw(new Storage('base', {
}, },
serverDisconnectedBehavior: { serverDisconnectedBehavior: {
where: 'device', where: 'device',
default: 'quiet' as 'quiet' | 'reload' | 'dialog', default: null as null | 'quiet' | 'reload' | 'dialog',
}, },
nsfw: { nsfw: {
where: 'device', where: 'device',