Files
klp-mono/apps/hand-factory/App.vue
砂糖 196f55961a feat: 添加扫码成功页面和实际库区选择功能
- 新增扫码成功页面,优化用户体验
- 添加实际库区选择组件和API接口
- 修改合并功能表单,增加实际库区选择
- 更新应用版本号和配置
- 优化首页跳转逻辑和错误处理
2025-11-04 13:07:06 +08:00

47 lines
914 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')
return;
}
}
}
}
uni.$updateManager = updateManager;
</script>
<style lang="scss">
@import '@/static/scss/index.scss'
</style>