升级magic-api 2.0 增加操作日志、登录日志

This commit is contained in:
吕金泽
2022-03-05 22:30:18 +08:00
parent b630ed3828
commit d743d7c95b
99 changed files with 1483 additions and 420 deletions
+2 -1
View File
@@ -23,7 +23,8 @@ import global from '@/scripts/global.js'
document.title = global.title
router.beforeEach((to, from) => {
global.tabValue.value = to.path
if((to.name && global.visitedViews.length === 0 || global.visitedViews.every(it => it.path !== to.path)) && !to.path.startsWith('/redirect')){
if((to.name && global.visitedViews.length === 0 || global.visitedViews.every(it => it.path !== to.path)) && !to.path.startsWith('/redirect') && !to.path.startsWith('/login')){
console.log(to)
global.visitedViews.push(to)
}
return true