mirror of https://github.com/halo-dev/halo-admin
parent
e13b4977bd
commit
7e08350da5
13
src/main.ts
13
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<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