<template>
  <div id="app" class="app">
    <router-view/>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
export default {
  name: 'App',
  computed: {
    ...mapGetters(['userRole']),
  },
  mounted () {
    if (this.userRole === 1) {
      window.JsToAndroid.setNavigationBarShowStatus('1')
      window.JsToAndroid.setStatusBarShowStatus('1')
      window.JsToAndroid.setHomePackage('com.android.launcher3')
    } else {
      window.JsToAndroid.setNavigationBarShowStatus('0')
      window.JsToAndroid.setStatusBarShowStatus('0')
      window.JsToAndroid.setHomePackage('com.systech.nuolizhineng')
    }
  }
}
</script>

<style lang="stylus" scoped>
@import './style/mixin'
.app
  width 100%
  height 100%
</style>
