refactor(projects): refactor app init loading [重构系统初始化的加载]

This commit is contained in:
Soybean
2022-11-16 23:35:26 +08:00
parent fcc65c3751
commit 57bfe27819
5 changed files with 49 additions and 149 deletions

View File

@ -1,5 +1,6 @@
import { createApp } from 'vue';
import App from './App.vue';
import AppLoading from './components/common/AppLoading.vue';
import { setupDirectives } from './directives';
import { setupRouter } from './router';
import { setupAssets } from './plugins';
@ -10,6 +11,11 @@ async function setupApp() {
// import assets: js、css
setupAssets();
// app loading
const appLoading = createApp(AppLoading);
appLoading.mount('#appLoading');
const app = createApp(App);
// store plugin: pinia