第一次提交
This commit is contained in:
28
jeecgboot-vue3/src/views/demo/feat/tabs/TabDetail.vue
Normal file
28
jeecgboot-vue3/src/views/demo/feat/tabs/TabDetail.vue
Normal file
@@ -0,0 +1,28 @@
|
||||
<template>
|
||||
<PageWrapper title="Tab详情页面">
|
||||
<div>{{ index }} - 详情页内容在此</div>
|
||||
</PageWrapper>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { PageWrapper } from '/@/components/Page';
|
||||
import { useTabs } from '/@/hooks/web/useTabs';
|
||||
import { useRoute } from 'vue-router';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'TabDetail',
|
||||
components: { PageWrapper },
|
||||
setup() {
|
||||
const route = useRoute();
|
||||
const index = route.params?.id ?? -1;
|
||||
const { setTitle } = useTabs();
|
||||
|
||||
// 设置标识
|
||||
setTitle(`No.${index} - 详情信息`);
|
||||
return {
|
||||
index,
|
||||
};
|
||||
},
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user