mirror of https://github.com/halo-dev/halo
parent
bb62ebc89e
commit
737e65067a
11
src/main.ts
11
src/main.ts
|
@ -201,13 +201,20 @@ async function initApp() {
|
|||
|
||||
try {
|
||||
loadCoreModules();
|
||||
|
||||
try {
|
||||
await loadPluginModules();
|
||||
} catch (e) {
|
||||
console.error("Failed to load plugins", e);
|
||||
}
|
||||
|
||||
await loadCurrentUser();
|
||||
app.provide<MenuGroupType[]>("menus", menus);
|
||||
app.provide<MenuItemType[]>("minimenus", minimenus);
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
} finally {
|
||||
app.provide<MenuGroupType[]>("menus", menus);
|
||||
app.provide<MenuItemType[]>("minimenus", minimenus);
|
||||
|
||||
app.use(router);
|
||||
app.mount("#app");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue