mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
24 lines
444 B
TypeScript
24 lines
444 B
TypeScript
import { createApp } from 'vue';
|
|
import { setupAssets } from '@/plugins';
|
|
import { setupRouter } from '@/router';
|
|
import { setupStore } from '@/store';
|
|
import App from './App.vue';
|
|
|
|
async function setupApp() {
|
|
// 引入静态资源
|
|
setupAssets();
|
|
|
|
const app = createApp(App);
|
|
|
|
// 挂载pinia状态
|
|
setupStore(app);
|
|
|
|
// 挂载路由
|
|
await setupRouter(app);
|
|
|
|
// 路由准备就绪后挂载 App
|
|
app.mount('#app');
|
|
}
|
|
|
|
setupApp();
|