提交 eb8f62e7 编写于 作者: tony001's avatar tony001

调整权限服务

上级 fec946f2
......@@ -11,11 +11,20 @@ export default class AuthService {
/**
* Vue 状态管理器
*
* @private
* @public
* @type {(any | null)}
* @memberof AuthService
*/
private $store: Store<any> | null = null;
public $store: Store<any> | null = null;
/**
* 默认操作符
*
* @public
* @type {(any)}
* @memberof AuthService
*/
public defaultOPPrivs: any = { UPDATE: 1, CREATE: 1, READ: 1, DELETE: 1 };
/**
* Creates an instance of AuthService.
......@@ -55,7 +64,7 @@ export default class AuthService {
* @returns {Promise<any>}
* @memberof AuthService
*/
public async getOPPrivs(data:any):Promise<any>{
public async getOPPrivs(data: any): Promise<any> {
return null;
}
......@@ -66,7 +75,7 @@ export default class AuthService {
* @returns {boolean}
* @memberof AuthService
*/
public getMenusPermission(item:any):boolean{
public getMenusPermission(item: any): boolean {
return true;
}
......@@ -77,7 +86,7 @@ export default class AuthService {
* @returns {boolean}
* @memberof AuthService
*/
public getResourcePermission(tag:any):boolean{
public getResourcePermission(tag: any): boolean {
return true;
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册