This commit is contained in:
kuviki 2018-06-07 13:26:10 +08:00 committed by 花裤衩
parent f3ccd9f04e
commit e40fd27775
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ import { getToken } from '@/utils/auth' // getToken from cookie
NProgress.configure({ showSpinner: false })// NProgress Configuration NProgress.configure({ showSpinner: false })// NProgress Configuration
// permissiom judge function // permission judge function
function hasPermission(roles, permissionRoles) { function hasPermission(roles, permissionRoles) {
if (roles.indexOf('admin') >= 0) return true // admin permission passed directly if (roles.indexOf('admin') >= 0) return true // admin permission passed directly
if (!permissionRoles) return true if (!permissionRoles) return true