mirror of
https://gitee.com/ssssssss-team/magic-boot.git
synced 2026-06-02 00:00:03 +08:00
升级magic-api 2.0 增加操作日志、登录日志
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user