mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-11-15 05:03:44 +08:00
27
src/views/function/tab-detail/index.vue
Normal file
27
src/views/function/tab-detail/index.vue
Normal file
@@ -0,0 +1,27 @@
|
||||
<template>
|
||||
<n-space :vertical="true" :size="16">
|
||||
<n-card title="Tab Detail" :bordered="false" size="small" class="shadow-sm rounded-16px">
|
||||
<n-space :vertical="true" :size="12">
|
||||
<div>当前路由的描述数据(meta):</div>
|
||||
<div>{{ route.meta }}</div>
|
||||
<n-button @click="handleToTab">返回Tab</n-button>
|
||||
</n-space>
|
||||
</n-card>
|
||||
</n-space>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { useRoute } from 'vue-router';
|
||||
import { routeName } from '@/router';
|
||||
import { useRouterPush } from '@/composables';
|
||||
|
||||
const { routerPush } = useRouterPush();
|
||||
|
||||
const route = useRoute();
|
||||
|
||||
function handleToTab() {
|
||||
routerPush({ name: routeName('function_tab') });
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
Reference in New Issue
Block a user