- 重构扫码页面结构,采用标签页形式组织功能模块 - 新增分卷录入功能组件(apart.vue)和基础录入功能组件(typing.vue) - 新增物料选择组件(klp-product-select)和标签页组件(klp-tabs) - 新增WMS相关API接口(product.js, warehouse.js等) - 更新uni-data-select组件支持多选和插槽功能 - 更新uni-icons和uni-load-more组件版本及功能 - 移除冗余样式和代码,优化现有组件结构 refactor(组件): 优化acidity.vue组件使用新的标签页组件 style: 移除冗余CSS样式代码 chore: 更新多个uni_modules组件的package.json版本号
38 lines
773 B
Vue
38 lines
773 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
|
|
},
|
|
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>
|