新增首页骨架屏并优化页面体验

This commit is contained in:
future
2026-06-06 13:25:58 +08:00
parent 823d626440
commit be7eabdbb1
10 changed files with 578 additions and 205 deletions
+11
View File
@@ -15,6 +15,17 @@ app.$mount()
import { createSSRApp } from 'vue'
export function createApp() {
const app = createSSRApp(App)
// 全局混入:所有页面加载时自动隐藏 loading
app.mixin({
onLoad() {
// 页面加载完成,隐藏 loading
uni.hideLoading()
},
async onReady() {
uni.hideLoading()
}
})
return {
app
}