mirror of
https://github.com/ZHANGTIANYAO1/teamspeak-music-bot.git
synced 2026-10-02 04:52:50 +08:00
feat(scope): dedicated link seeds ?bot scope instead of bare redirect
This commit is contained in:
1 parent
53d28de17e
commit
88ac7d2a68
1 file changed
+2
-2
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user