panhui 3 years ago
parent
commit
792189b8be
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/views/Home.vue

+ 3 - 0
src/views/Home.vue

@@ -154,6 +154,9 @@ export default {
         };
     },
     mounted() {
+        if (this.$route.params.companyId) {
+            this.$store.dispatch('getCompanyInfo', this.$route.params.companyId);
+        }
         if (window.cordova && StatusBar && StatusBar.isVisible) {
             StatusBar.styleDefault();
         }