<template>
  <view v-if="auth.hasRight()"><slot /></view>
  <NoRight v-else />
</template>

<script setup lang="ts">
import { useWeAppAuthStore } from '@/common'
import NoRight from './NoRight.vue'

const auth: any = useWeAppAuthStore()
</script>
