<!-- 兼容旧引用：超管渠道栏已提升至全局 SuperAdminChannelShell -->
<template>
  <slot :dept-id="deptId" :dept-params="deptParams" />
</template>

<script setup lang="ts">
  import { useInjectedChannelDept, DEFAULT_CHANNEL_ID } from '@/composables/useChannelDeptScope'

  const channel = useInjectedChannelDept()
  const deptId = computed(() => channel?.selectedDeptId.value ?? DEFAULT_CHANNEL_ID)
  const deptParams = computed(() => ({ dept_id: deptId.value }))
</script>
