Commit c7afd945 authored by 罗超's avatar 罗超

修复快捷链接

parent 792ec96b
...@@ -21,7 +21,9 @@ router.beforeEach((to:any, from:any, next:any) => { ...@@ -21,7 +21,9 @@ router.beforeEach((to:any, from:any, next:any) => {
lock:true lock:true
}) })
} }
if ((whiteList.includes(to.path) || user.getUserToken!='' || to.path.includes('/j/')) && !to.query.uid) {
const path = `/${to.path.split('/')[1]}`
if ((whiteList.includes(path) || user.getUserToken!='' || to.path.includes('/j/')) && !to.query.uid) {
if(managerMenu.includes(to.path) && user.getUser.isTemplate!=1){ if(managerMenu.includes(to.path) && user.getUser.isTemplate!=1){
next('/notfound'); next('/notfound');
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment