perf[permission]:set role => roles

This commit is contained in:
Pan
2018-01-05 11:38:34 +08:00
parent de08e49f19
commit 54acf1e0d5
6 changed files with 28 additions and 25 deletions

View File

@@ -2,14 +2,14 @@ import { param2Obj } from '@/utils'
const userMap = {
admin: {
role: ['admin'],
roles: ['admin'],
token: 'admin',
introduction: '我是超级管理员',
avatar: 'https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif',
name: 'Super Admin'
},
editor: {
role: ['editor'],
roles: ['editor'],
token: 'editor',
introduction: '我是编辑',
avatar: 'https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif',