Commit 813f62f9 by 张立顺

权限控制

1 parent b4b29383
......@@ -108,11 +108,14 @@ export default {
// 先处理园区店角色是不能拿到 订单审批和发货的页面
console.log("userInfo.beYQMerchant", userInfo.beYQMerchant)
const filterList = ["90903", "90904"]
if (userInfo.beYQMerchant) {
if (!userInfo.beSuper && userInfo.beYQMerchant) {
targetRoutes = targetRoutes.filter((item) => {
return !filterList.includes(item.toString())
})
}
if (userInfo.beServerMerchant) {
targetRoutes.push("90904")
}
console.log("targetRoutes", targetRoutes)
routeAll
.map((i) => i.authId)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!