refactor: 修改没有角色的用户的视图

This commit is contained in:
Captain.B 2020-07-22 13:35:38 +08:00
parent 933a7b3608
commit fcffefadf2
1 changed files with 5 additions and 2 deletions

View File

@ -29,7 +29,8 @@
<span>{{$t('commons.workspace')}}</span> <span>{{$t('commons.workspace')}}</span>
</template> </template>
<el-menu-item index="/setting/member">{{$t('commons.member')}}</el-menu-item> <el-menu-item index="/setting/member">{{$t('commons.member')}}</el-menu-item>
<el-menu-item index="/setting/testcase/report/template">{{$t('test_track.plan_view.report_template')}}</el-menu-item> <el-menu-item index="/setting/testcase/report/template">{{$t('test_track.plan_view.report_template')}}
</el-menu-item>
</el-submenu> </el-submenu>
<el-submenu index="4"> <el-submenu index="4">
@ -38,7 +39,9 @@
<span>{{$t('commons.personal_info')}}</span> <span>{{$t('commons.personal_info')}}</span>
</template> </template>
<el-menu-item index="/setting/personsetting">{{$t('commons.personal_setting')}}</el-menu-item> <el-menu-item index="/setting/personsetting">{{$t('commons.personal_setting')}}</el-menu-item>
<el-menu-item index="/setting/apikeys">API Keys</el-menu-item> <el-menu-item v-permission="['admin', 'org_admin', 'test_manager', 'test_user', 'test_viewer']"
index="/setting/apikeys">API Keys
</el-menu-item>
</el-submenu> </el-submenu>
</el-menu> </el-menu>