feat(scope): dedicated link seeds ?bot scope instead of bare redirect

This commit is contained in:
saopig1 committed 2026-05-30 15:14:54 +08:00
1 parent 53d28de17e
commit 88ac7d2a68
1 file changed
+2 -2
+2 -2
View File
@@ -22,8 +22,8 @@ onMounted(async () => {
} }
const bot = store.bots.find((b) => b.id === botId); const bot = store.bots.find((b) => b.id === botId);
if (bot) { if (bot) {
store.setActiveBotId(botId); store.setScope(botId);
router.replace('/'); router.replace({ path: '/', query: { bot: botId } });
} else { } else {
notFound.value = true; notFound.value = true;
} }