feat(admin): 增加工作台大屏和转码通知
This commit is contained in:
1 parent
2b2c6bd708
commit
a266d44483
10 files changed
+860
-172
No files matched your search
+37
-1
@@ -52,6 +52,35 @@ export const constantRouterMap: AppRouteRecordRaw[] = [
|
||||
title: '404',
|
||||
noTagsView: true
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/notifications',
|
||||
component: Layout,
|
||||
name: 'Notifications',
|
||||
meta: {
|
||||
hidden: true,
|
||||
title: '通知'
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: 'transcode',
|
||||
name: 'transcode-notices',
|
||||
component: () => import('@/views/common/TranscodeNoticeView.vue'),
|
||||
meta: {
|
||||
title: '转码通知'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/:pathMatch(.*)*',
|
||||
name: 'UnresolvedPath',
|
||||
component: () => import('@/views/Error/404.vue'),
|
||||
meta: {
|
||||
hidden: true,
|
||||
title: '404',
|
||||
noTagsView: true
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@@ -232,7 +261,14 @@ const router = createRouter({
|
||||
})
|
||||
|
||||
export const resetRouter = (): void => {
|
||||
const resetWhiteNameList = ['Redirect', 'RedirectParent', 'Login', 'NoFind', 'Root']
|
||||
const resetWhiteNameList = [
|
||||
'Redirect',
|
||||
'RedirectParent',
|
||||
'Login',
|
||||
'NoFind',
|
||||
'Root',
|
||||
'UnresolvedPath'
|
||||
]
|
||||
router.getRoutes().forEach((route) => {
|
||||
const { name } = route
|
||||
if (name && !resetWhiteNameList.includes(name as string)) {
|
||||
|
||||
Reference in new issue
Block a user