<template>
  <view class="page-container">
    <NavBar :title="pageTitle" />
    <PermissionMenuPage class="flex-fill" page-path="pages/work" title="管理中心" subtitle="系统配置与管理" :showHeader="false" :searchable="false"
      :show-go-top="true" :safe-bottom="true" />
    <TabBar />
  </view>
</template>

<script setup>
import { computed } from 'vue'
import { useI18n } from 'vue-i18n'
import NavBar from '@/components/common/NavBar.vue'
import TabBar from '@/components/common/TabBar.vue'
import PermissionMenuPage from '@/components/common/PermissionMenuPage.vue'

const { t } = useI18n()
const pageTitle = computed(() => t('tab.work'))
</script>

<style lang="scss" scoped>
.page-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: #f5f6f7;
}

.flex-fill {
  flex: 1;
  overflow: visible;
}
</style>
