<template>
  <div>
    <!-- 企业端 -->
    <div v-if="checkRole(['admin', 'company'])">
      <qiyeduan />
    </div>
    <!-- 政务端 -->
    <div v-if="checkRole(['admin', 'common'])">
      <zhengwuduan />
    </div>
  </div>
</template>

<script>
import qiyeduan from '@/views/components/qiyexinxi/qiyexinxi.vue'
import zhengwuduan from '@/views/components/zhengwuxinxi/zhengwuxinxi.vue'
import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数

export default {
  components: { qiyeduan, zhengwuduan },
  methods: {
    checkPermi,
    checkRole
  }
}
</script>