Fix typo (#747)
This commit is contained in:
parent
f3ccd9f04e
commit
e40fd27775
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue