refactor: dynamic routes

This commit is contained in:
张传龙
2022-09-18 15:10:22 +08:00
parent 30211e14ea
commit bdbe9b8483
5 changed files with 50 additions and 38 deletions

View File

@@ -8,12 +8,12 @@ import { setupRouter } from '@/router'
import { setupStore } from '@/store'
import App from './App.vue'
function setupApp() {
async function setupApp() {
const app = createApp(App)
setupStore(app)
setupRouter(app)
await setupRouter(app)
app.mount('#app')
}