Files
klp-mono/apps/hand-factory/App.vue
砂糖 d677c293e8 feat: 添加产线监控页面并优化扫码页面样式
- 新增产线监控页面(line.vue)及相关组件
- 优化扫码页面(easycode.vue)的UI布局和样式
- 调整pages.json中的页面顺序和导航栏配置
- 启用并配置tabBar功能
2025-11-03 13:48:03 +08:00

45 lines
898 B
Vue

<script>
import config from './config'
import { getToken } from '@/utils/auth'
import updateManager from "@/utils/update.js";
export default {
onLaunch: function() {
this.initApp()
updateManager.checkUpdate();
},
methods: {
// 初始化应用
initApp() {
// 初始化应用配置
this.initConfig()
// 检查用户登录状态
//#ifdef H5
this.checkLogin()
//#endif
// uni.hideTabBar()
},
// mounted() {
// uni.hideTabBar()
// },
// onShow() {
// uni.hideTabBar()
// },
initConfig() {
this.globalData.config = config
},
checkLogin() {
if (!getToken()) {
this.$tab.reLaunch('/pages/login')
}
}
}
}
uni.$updateManager = updateManager;
</script>
<style lang="scss">
@import '@/static/scss/index.scss'
</style>