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

<script>
export default {
  name: "App",
  data() {
    return {
      isDesktop: false,
    };
  },
  created() {
    this.$store.dispatch("getCommonBaseHomeList");
    if (!this.$store.state.isDesktop) {
      this.$request.getWeAppLink().then((res) => {
        res.msg && (window.location.href = res.msg);
      });
    }
  },
};
</script>

<style>
#app {
}
</style>
