Files
hmc_gbhd/frontend/src/App.vue
T
2025-04-25 08:48:11 +08:00

54 lines
1009 B
Vue

<script>
import { setupRouterInterceptor, getDefaultWhiteList } from './utils/routerInterceptor'
export default {
onLaunch: function () {
console.log('App Launch')
// 初始化路由拦截器
setupRouterInterceptor(getDefaultWhiteList())
},
onShow: function () {
console.log('App Show')
},
onHide: function () {
console.log('App Hide')
},
}
</script>
<style>
/*每个页面公共css */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
html, body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
font-size: 14px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
color: #333;
background-color: #f5f5f5;
box-sizing: border-box;
}
.page-container {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
overflow-x: hidden;
}
uni-page-body{
height: 100%;
}
</style>