diff --git a/src/main.ts b/src/main.ts index 0d02194dc..9539c0cbf 100644 --- a/src/main.ts +++ b/src/main.ts @@ -201,13 +201,20 @@ async function initApp() { try { loadCoreModules(); - await loadPluginModules(); + + try { + await loadPluginModules(); + } catch (e) { + console.error("Failed to load plugins", e); + } + await loadCurrentUser(); - app.provide("menus", menus); - app.provide("minimenus", minimenus); } catch (e) { console.error(e); } finally { + app.provide("menus", menus); + app.provide("minimenus", minimenus); + app.use(router); app.mount("#app"); }