feat(projects): add app loading

This commit is contained in:
Soybean
2024-01-17 22:47:27 +08:00
parent 2372dc9bb7
commit c65451b34c
3 changed files with 24 additions and 12 deletions

View File

@ -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();
@ -22,6 +27,8 @@ async function setupApp() {
setupI18n(app);
app.mount('#app');
appLoading.unmount();
}
setupApp();