mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-04-11 07:53:14 +08:00
24 lines
561 B
Vue
24 lines
561 B
Vue
<script lang="ts" setup>
|
|
import { Fallback, VbenButton } from '@vben/common-ui';
|
|
import { useTabs } from '@vben/hooks';
|
|
import { X } from '@vben/icons';
|
|
|
|
const { closeCurrentTab } = useTabs();
|
|
</script>
|
|
|
|
<template>
|
|
<Fallback
|
|
description="当前路由在菜单中不可见"
|
|
status="coming-soon"
|
|
title="被隐藏的子菜单"
|
|
show-back
|
|
>
|
|
<template #action>
|
|
<VbenButton size="lg" @click="closeCurrentTab()">
|
|
<X class="mr-2 size-4" />
|
|
关闭当前标签页
|
|
</VbenButton>
|
|
</template>
|
|
</Fallback>
|
|
</template>
|