Skip to content

Commit

Permalink
fix: should await setupMain (#1971)
Browse files Browse the repository at this point in the history
  • Loading branch information
kermanx authored Dec 3, 2024
1 parent 8bb6bc1 commit 899956b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/client/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import { createApp } from 'vue'
import App from './App.vue'
import setupMain from './setup/main'

const app = createApp(App)
setupMain(app)
app.mount('#app')
async function main() {
const app = createApp(App)
await setupMain(app)
app.mount('#app')
}

main()

0 comments on commit 899956b

Please sign in to comment.