Skip to content

Commit 899956b

Browse files
authoredDec 3, 2024··
fix: should await setupMain (#1971)
1 parent 8bb6bc1 commit 899956b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed
 

‎packages/client/main.ts

+7-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ import { createApp } from 'vue'
44
import App from './App.vue'
55
import setupMain from './setup/main'
66

7-
const app = createApp(App)
8-
setupMain(app)
9-
app.mount('#app')
7+
async function main() {
8+
const app = createApp(App)
9+
await setupMain(app)
10+
app.mount('#app')
11+
}
12+
13+
main()

0 commit comments

Comments
 (0)
Please sign in to comment.