This commit is contained in:
Pan
2017-04-24 17:34:04 +08:00
parent b3e1b6c824
commit 3fe2a376dd
8 changed files with 46 additions and 26 deletions

View File

@@ -29,10 +29,11 @@
if (this.roles.indexOf('admin') >= 0) {
return;
}
const isEditor = this.roles.some(v => v.indexOf('editor') >= 0)
if (!isEditor) {
this.currentRole = 'DefaultDashboard';
}
// const isEditor = this.roles.some(v => v.indexOf('editor') >= 0)
// if (!isEditor) {
// this.currentRole = 'DefaultDashboard';
// }
this.currentRole = 'DefaultDashboard';
}
}
</script>