feat: 新增多开标签页Demo

This commit is contained in:
kailong321200875
2023-08-12 09:33:57 +08:00
parent c83a026d55
commit 5c253ce803
6 changed files with 112 additions and 10 deletions

View File

@@ -313,6 +313,37 @@ export const asyncRouterMap: AppRouteRecordRaw[] = [
}
]
},
{
path: '/function',
component: Layout,
redirect: '/function/multipleTabs',
name: 'Function',
meta: {
title: t('router.function'),
icon: 'ri:function-fill',
alwaysShow: true
},
children: [
{
path: 'multipleTabs',
component: () => import('@/views/Function/MultipleTabs.vue'),
name: 'MultipleTabs',
meta: {
title: t('router.multipleTabs')
}
},
{
path: 'multipleTabs-demo/:id',
component: () => import('@/views/Function/MultipleTabsDemo.vue'),
name: 'MultipleTabsDemo',
meta: {
hidden: true,
title: t('router.details'),
canTo: true
}
}
]
},
{
path: '/hooks',
component: Layout,
@@ -331,16 +362,16 @@ export const asyncRouterMap: AppRouteRecordRaw[] = [
meta: {
title: 'useWatermark'
}
},
{
path: 'useTab',
component: () => import('@/views/hooks/useTab.vue'),
name: 'UseTab',
meta: {
title: 'useTab'
}
}
// {
// path: 'useOpenTab',
// component: () => import('@/views/hooks/useOpenTab.vue'),
// name: 'UseOpenTab',
// meta: {
// title: 'useOpenTab'
// }
// }
// {
// path: 'useCrudSchemas',
// component: () => import('@/views/hooks/useCrudSchemas.vue'),
// name: 'UseCrudSchemas',