Skip to content

Commit

Permalink
feat(projects): add app loading
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Jan 17, 2024
1 parent 67fbfc7 commit a7ef1a5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@ import { setupDayjs, setupIconifyOffline, setupNProgress } from './plugins';
import { setupStore } from './store';
import { setupRouter } from './router';
import { setupI18n } from './locales';
import AppLoading from './components/common/app-loading.vue';
import App from './App.vue';

async function setupApp() {
const appLoading = createApp(AppLoading);

appLoading.mount('#appLoading');

setupNProgress();

setupIconifyOffline();
Expand All @@ -22,6 +27,8 @@ async function setupApp() {
setupI18n(app);

app.mount('#app');

appLoading.unmount();
}

setupApp();

0 comments on commit a7ef1a5

Please sign in to comment.