Commit 57e5ea07 by jack

增加权限判断方法

1 parent 9fb0c489
This diff could not be displayed because it is too large.
...@@ -103,6 +103,20 @@ export const Common = { ...@@ -103,6 +103,20 @@ export const Common = {
// 公共页面跳转方法 // 公共页面跳转方法
navigateTo:function(options){ navigateTo:function(options){
},
// 判断是否有权限
hasPermission:function(pid){
let list = Common.getAuthData()
if (!list || list.length <= 0) {
return false;
}
let idx = list.findIndex((k) => k.origin.permissionTag == pid);
if (idx < 0) {
return false;
} else {
return true;
}
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!