Zlpt_Portal/src/views/AppMain.vue

43 lines
1022 B
Vue
Raw Normal View History

2023-12-04 09:12:38 +08:00
<script setup lang="ts">
2023-12-05 17:25:00 +08:00
import FooterInfo from '../components/FooterInfo/index.vue'
2023-12-08 10:10:04 +08:00
import HeaderCom from '../layout/header.vue'
2023-12-07 17:49:10 +08:00
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
const locale = zhCn
2023-12-05 17:25:00 +08:00
const route = useRoute()
2023-12-04 09:12:38 +08:00
// 判断是否是个人中心页面 如果是则隐藏页脚
const isMyInfoPage = () => {
if (route.path.indexOf('myuser') === -1) {
return true
} else {
return false
}
}
2023-12-08 10:10:04 +08:00
onMounted(() => {})
2023-12-04 09:12:38 +08:00
</script>
<template>
2023-12-08 10:10:04 +08:00
<HeaderCom />
2023-12-04 09:12:38 +08:00
<div class="container">
2023-12-07 17:49:10 +08:00
<el-config-provider :locale="locale">
<RouterView />
</el-config-provider>
2023-12-04 09:12:38 +08:00
</div>
<FooterInfo v-if="isMyInfoPage()" />
2023-12-05 17:25:00 +08:00
<!-- <FooterInfo /> -->
2023-12-04 09:12:38 +08:00
</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>