mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 08:20:25 +08:00 
			
		
		
		
	refactor: contextmenu组件优化、标签&资源替换为contextmenu操作
This commit is contained in:
		@@ -6,6 +6,9 @@ import { useUserInfo } from '@/store/userInfo';
 | 
			
		||||
 * @returns
 | 
			
		||||
 */
 | 
			
		||||
export function hasPerm(code: string) {
 | 
			
		||||
    if (!code) {
 | 
			
		||||
        return true;
 | 
			
		||||
    }
 | 
			
		||||
    return useUserInfo().userInfo.permissions.some((v: any) => v === code);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user