23 lines
657 B
Vue
23 lines
657 B
Vue
<script>
|
|
export default {
|
|
data() {
|
|
return {};
|
|
},
|
|
globalData: {
|
|
userInfo: null,
|
|
baseUrl: 'https://api.inkreach.com'
|
|
},
|
|
onLaunch() {
|
|
const sysInfo = uni.getWindowInfo();
|
|
this.globalData.statusBarHeight = sysInfo.statusBarHeight;
|
|
this.globalData.windowWidth = sysInfo.windowWidth;
|
|
this.globalData.windowHeight = sysInfo.windowHeight;
|
|
// 注意:字体加载不能在这里调(页面未创建会报 not font page),
|
|
// 已移到首页 pages/index/index.vue 的 onLoad 中,global: true 照样全局生效
|
|
}
|
|
};
|
|
</script>
|
|
<style>
|
|
@import './app.css';
|
|
</style>
|