更新笔触和管理员页面

This commit is contained in:
X1627315083
2024-03-15 09:21:17 +08:00
parent bc314a2f83
commit b15d2e467f
29 changed files with 2792 additions and 1385 deletions

View File

@@ -117,11 +117,10 @@ router.beforeEach((to, from, next) => {
let token = getCookie("token");
let isMurmur = JSON.parse(getIsMurmur)
let routeList = ['/testClickData','/trialApproval']//指定页面需要指定id才能进入
let userIdList = [83,88,6]
let userIdList = [83,88,6,87]
const routeExists = router.getRoutes().some(({ name }) =>{
if(name){
console.log(name , to.name);
return name === to.name
return name === to.name
}else{
return false
}
@@ -141,7 +140,7 @@ router.beforeEach((to, from, next) => {
if(userIdList.indexOf(userInfo.userId) > -1){
next();
}else{
next({ name: 'home' });
next({ name: '/404' });
}
}else{
next();