mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-27 09:34:19 +08:00
fix(menu): fix menu icon missing close #328
This commit is contained in:
11
src/main.ts
11
src/main.ts
@@ -27,10 +27,11 @@ import { isDevMode } from '/@/utils/env';
|
||||
|
||||
(async () => {
|
||||
const app = createApp(App);
|
||||
|
||||
// Register global components
|
||||
registerGlobComp(app);
|
||||
|
||||
// Multilingual configuration
|
||||
await setupI18n(app);
|
||||
// Configure routing
|
||||
setupRouter(app);
|
||||
|
||||
@@ -43,12 +44,8 @@ import { isDevMode } from '/@/utils/env';
|
||||
// Configure global error handling
|
||||
setupErrorHandle(app);
|
||||
|
||||
await Promise.all([
|
||||
// Multilingual configuration
|
||||
setupI18n(app),
|
||||
// Mount when the route is ready
|
||||
router.isReady(),
|
||||
]);
|
||||
// Mount when the route is ready
|
||||
await router.isReady();
|
||||
|
||||
app.mount('#app', true);
|
||||
|
||||
|
Reference in New Issue
Block a user