mirror of
https://github.com/ZHANGTIANYAO1/teamspeak-music-bot.git
synced 2026-10-02 13:02:49 +08:00
fix(scope): await router.isReady before mount so refreshed ?bot locks the right bot
This commit is contained in:
1 parent
463a8e2f8a
commit
593b42830c
2 files changed
+8
-2
No files matched your search
+4
-1
@@ -11,4 +11,7 @@ installApiClient();
|
||||
const app = createApp(App);
|
||||
app.use(createPinia());
|
||||
app.use(router);
|
||||
app.mount('#app');
|
||||
// Wait for the initial navigation (and the beforeEach guard that reads ?bot)
|
||||
// to fully resolve before mounting, so the reactive route query is populated
|
||||
// when App.onMounted runs and the dedicated-bot scope locks the right bot.
|
||||
router.isReady().then(() => app.mount('#app'));
|
||||
Reference in new issue
Block a user