feat: 添加返回导航图标
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
This commit is contained in:
14
packages/effects/layouts/src/widgets/back-navigation.vue
Normal file
14
packages/effects/layouts/src/widgets/back-navigation.vue
Normal file
@@ -0,0 +1,14 @@
|
||||
<script setup lang="ts">
|
||||
import { ArrowLeft } from '@vben/icons';
|
||||
import { VbenIconButton } from '@vben-core/shadcn-ui';
|
||||
import { useRouter } from 'vue-router';
|
||||
const router = useRouter();
|
||||
const back = () => {
|
||||
router.push('/navigation');
|
||||
}
|
||||
</script>
|
||||
<template>
|
||||
<VbenIconButton @click="back">
|
||||
<ArrowLeft></ArrowLeft>
|
||||
</VbenIconButton>
|
||||
</template>
|
Reference in New Issue
Block a user