<script setup lang="ts">
    import FooterInfo from '../components/FooterInfo/index.vue'
    import HeaderCom from '../layout/header.vue'
    import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
    const locale = zhCn

    const route = useRoute()
    // 判断是否是个人中心页面 如果是则隐藏页脚
    const isMyInfoPage = () => {
        if (route.path.indexOf('myuser') === -1) {
            return true
        } else {
            return false
        }
    }

    onMounted(() => {})
</script>

<template>
    <HeaderCom />

    <div class="container">
        <el-config-provider :locale="locale">
            <RouterView />
        </el-config-provider>
    </div>
    <FooterInfo v-if="isMyInfoPage()" />
    <!-- <FooterInfo /> -->
</template>

<style scoped lang="scss">
    .container {
        width: 1200px;
        margin: 0 auto;
        overflow: hidden;
        background: #ffffff;
        border-radius: 30px;
        padding: 20px 30px;
        box-sizing: border-box;
    }
</style>
