diff --git a/apps/hand-factory/App.vue b/apps/hand-factory/App.vue index 4972546..ca4d332 100644 --- a/apps/hand-factory/App.vue +++ b/apps/hand-factory/App.vue @@ -30,8 +30,10 @@ }, checkLogin() { if (!getToken()) { - this.$tab.reLaunch('/pages/login') + this.$tab.reLaunch('/pages/login') + return; } + this.$store.dispatch('GetInfo') } } } diff --git a/apps/hand-factory/pages.json b/apps/hand-factory/pages.json index 2ce3554..3de6508 100644 --- a/apps/hand-factory/pages.json +++ b/apps/hand-factory/pages.json @@ -45,7 +45,8 @@ "path" : "pages/line/line", "style" : { - "navigationBarTitleText" : "产线监控" + "navigationBarTitleText" : "产线监控", + "navigationStyle": "custom" } } // { @@ -110,7 +111,7 @@ "list": [ { "text": "产线", - "pagePath": "pages/index", + "pagePath": "pages/line/line", "selectedIconPath": "/static/images/tabbar/home_.png", "iconPath": "/static/images/tabbar/home.png" }, @@ -125,13 +126,13 @@ "pagePath": "pages/mine/index", "selectedIconPath": "/static/images/tabbar/mine_.png", "iconPath": "/static/images/tabbar/mine.png" - }, - { - "text": "扫码2", - "pagePath": "pages/easycode/easycode", - "selectedIconPath": "/static/images/tabbar/work_.png", - "iconPath": "/static/images/tabbar/work.png" } + // { + // "text": "扫码2", + // "pagePath": "pages/easycode/easycode", + // "selectedIconPath": "/static/images/tabbar/work_.png", + // "iconPath": "/static/images/tabbar/work.png" + // } ] }, diff --git a/apps/hand-factory/pages/easycode/easycode.vue b/apps/hand-factory/pages/easycode/easycode.vue index 704bcc5..060f0e9 100644 --- a/apps/hand-factory/pages/easycode/easycode.vue +++ b/apps/hand-factory/pages/easycode/easycode.vue @@ -51,7 +51,7 @@ } }, mounted() { - getDicts('easycode_type').then(res => { + getDicts('action_type').then(res => { this.types = res.data }) } diff --git a/apps/hand-factory/pages/index.vue b/apps/hand-factory/pages/index.vue index 31cff59..9ae633c 100644 --- a/apps/hand-factory/pages/index.vue +++ b/apps/hand-factory/pages/index.vue @@ -1,5 +1,5 @@