From 94b47da8593439f37529d8ea7480a53908e377a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=85=E8=86=80?= Date: Fri, 23 Oct 2026 23:23:56 +0800 Subject: [PATCH] fix(console): retain legacy discord log targets A stored log target without platform means Discord. Keep that meaning in the editor instead of clearing the target. --- app/components/GroupEditor.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/components/GroupEditor.vue b/app/components/GroupEditor.vue index c2c9468..10e1ce2 100644 --- a/app/components/GroupEditor.vue +++ b/app/components/GroupEditor.vue @@ -330,7 +330,8 @@ watch( form.emoji = g?.emoji ?? true; form.forgeSources = (g?.forgeSources ?? []).map((s) => ({ ...s })); form.lang = g?.lang ?? ""; - form.logPlatform = lt?.platform ?? ""; + // A stored target without a platform is a Discord one (as the server reads it). + form.logPlatform = lt ? (lt.platform ?? "discord") : ""; form.logChannelId = lt?.channelId ?? ""; form.logThreadId = lt?.threadId ?? ""; form.logChatId = lt?.chatId ?? "";