解决微信小程序首页空白问题。
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user