mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
refactor(projects): refactor app-loading
This commit is contained in:
@ -1,16 +1,13 @@
|
||||
import { createApp } from 'vue';
|
||||
import './plugins/assets';
|
||||
import { setupDayjs, setupIconifyOffline, setupNProgress } from './plugins';
|
||||
import { setupDayjs, setupIconifyOffline, setupLoading, 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');
|
||||
setupLoading();
|
||||
|
||||
setupNProgress();
|
||||
|
||||
@ -27,8 +24,6 @@ async function setupApp() {
|
||||
setupI18n(app);
|
||||
|
||||
app.mount('#app');
|
||||
|
||||
appLoading.unmount();
|
||||
}
|
||||
|
||||
setupApp();
|
||||
|
Reference in New Issue
Block a user