<template>
  <div id="login">
    <admin-frame :useTop="false" :usePage="false" :useNav="false">
      <template v-slot:info>
        <user-1 v-if="user.role == '1'"></user-1>
        <user-2 v-else-if="user.role == '2'"></user-2>
        <user-3 v-else-if="user.role == '3'"></user-3>
        <user-4 v-else-if="user.role == '4'"></user-4>
        <user-5 v-else-if="user.role == '5'"></user-5>
      </template>
    </admin-frame>
  </div>
</template>

<script>
import user1 from './user-role/user-1.vue';
import user2 from './user-role/user-2.vue';
import user3 from './user-role/user-3.vue';
import user4 from './user-role/user-4.vue';
import user5 from './user-role/user-5.vue';
import adminFrame from '@frame/src/components/mobile-frame/mobile-main.vue';
import { mapState, createNamespacedHelpers } from 'vuex';
export default {
  name: 'login',
  props: {},
  components: {
    adminFrame,
    user1,
    user2,
    user3,
    user4,
    user5,
  },
  data: function () {
    return {};
  },
  async created() {},
  methods: {},
  computed: {
    ...mapState(['user']),
  },
  metaInfo() {
    return { title: this.$route.meta.title };
  },
  watch: {
    test: {
      deep: true,
      immediate: true,
      handler(val) {},
    },
  },
};
</script>

<style lang="less" scoped></style>
