feat(component): Add CountTo component and Echart component

This commit is contained in:
kailong321200875
2022-01-22 19:39:44 +08:00
parent dad7330634
commit e20fa76cad
15 changed files with 461 additions and 48 deletions

View File

@@ -38,7 +38,7 @@ router.beforeEach(async (to, from, next) => {
const redirect = decodeURIComponent(redirectPath as string)
const nextData = to.path === redirect ? { ...to, replace: true } : { path: redirect }
permissionStore.setIsAddRouters(true)
next(nextData)
next(to.path === '/' ? { path: permissionStore.addRouters[0]?.path as string } : nextData)
}
} else {
if (whiteList.indexOf(to.path) !== -1) {