添加进入管理员页面按钮和进入管理员页面必须指定id

This commit is contained in:
X1627315083
2024-04-23 13:34:06 +08:00
parent e8592a8967
commit 64f08ee2f1
5 changed files with 13 additions and 5 deletions

View File

@@ -145,7 +145,7 @@ router.beforeEach((to, from, next) => {
let token = getCookie("token");
let isMurmur = JSON.parse(getIsMurmur)
let routeList = ['/testClickData','/trialApproval']//指定页面需要指定id才能进入
let userIdList = [83,88,6,87]
let userIdList = [88,6,46,31,73,83,87]
const routeExists = router.getRoutes().some(({ name }) =>{
if(name){
return name === to.name