build: Add conventional-changelog-cli plugin

This commit is contained in:
陈凯龙
2022-02-21 15:05:58 +08:00
parent b2924190b8
commit 384485f699
6 changed files with 841 additions and 128 deletions

View File

@@ -7,6 +7,15 @@ import { useI18n } from '@/hooks/web/useI18n'
const { t } = useI18n()
export const constantRouterMap: AppRouteRecordRaw[] = [
{
path: '/',
component: Layout,
redirect: '/dashboard/analysis',
name: 'Root',
meta: {
hidden: true
}
},
{
path: '/redirect',
component: Layout,
@@ -488,7 +497,7 @@ const router = createRouter({
})
export const resetRouter = (): void => {
const resetWhiteNameList = ['Redirect', 'Login', 'NoFind']
const resetWhiteNameList = ['Redirect', 'Login', 'NoFind', 'Root']
router.getRoutes().forEach((route) => {
const { name } = route
if (name && !resetWhiteNameList.includes(name as string)) {