优化首次载入流程

This commit is contained in:
叮叮当
2023-09-19 14:35:43 +08:00
parent 1abdf6d15c
commit 198ea0104d

View File

@@ -50,8 +50,10 @@ router.afterEach(() => {
if (isFirstApp) {
// 标记首次载入完成, 再绑定app
isFirstApp = false
setTimeout(() => {
app.mount('#app')
}, 300)
// 先不加延迟试试
app.mount('#app')
// setTimeout(() => {
// app.mount('#app')
// }, 300)
}
})