解决微信小程序首页空白问题。
This commit is contained in:
@@ -56,7 +56,12 @@
|
||||
},
|
||||
computed: {
|
||||
uniStarterConfig() {
|
||||
return getApp().globalData.config
|
||||
try {
|
||||
const app = getApp({ allowDefault: true });
|
||||
return app && app.globalData ? app.globalData.config : {};
|
||||
} catch (e) {
|
||||
return {};
|
||||
}
|
||||
},
|
||||
agreements() {
|
||||
if(!uniIdPagesConfig.agreements){
|
||||
|
||||
Reference in New Issue
Block a user