解决微信小程序首页空白问题。

This commit is contained in:
cst61
2026-02-01 09:21:11 +08:00
parent 80d6d46182
commit cc01c4dc47
454 changed files with 404 additions and 62235 deletions

View File

@@ -23,7 +23,12 @@
export default {
computed: {
uniStarterConfig() {
return getApp().globalData.config
try {
const app = getApp({ allowDefault: true });
return app && app.globalData ? app.globalData.config : {};
} catch (e) {
return {};
}
}
},
data() {