<template>
    <Layout class="main" style="height: 100%">
        <div class="header">
            <div class="header_cont">
                <img class="logo" src="/img/call_logo.png">
                <userBox/>
            </div>
        </div>
        <Content class="content-wrapper">
            <router-view/>
        </Content>
    </Layout>
</template>
<script>
import { mapState } from 'vuex'
import userBox from '@/pages/call/components/userBox'
export default {
    name: 'Main',
    components: {
        userBox,
    },
    data() {
        return {
            collapsed: false,
        }
    },
    computed: {
        ...mapState({
            user: (state) => state.user, //
        }),
    },
    created () {
    },
    methods: {
    }
}
</script>
<style lang="less" scoped>
.main {
    background: #FAFAFA;
    .header{
        background: #FFFFFF;
        height: 64px;
        padding: 0 160rem;
        .header_cont{
            height: 64px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            .logo{
                width: 103px;
                height: 36px;
            }
        }
    }
    .content-wrapper{
        padding: 24px 160rem;
        height: ~'calc(100% - 80px)';
        overflow: auto;
    }
}
</style>
