refactor(性能测试): 顶部菜单修改

This commit is contained in:
Captain.B 2021-05-26 14:03:51 +08:00 committed by 刘瑞斌
parent 27fac113c9
commit be0248d168
1 changed files with 6 additions and 19 deletions

View File

@ -7,25 +7,12 @@
<el-menu-item :index="'/performance/home'">
{{ $t("i18n.home") }}
</el-menu-item>
<el-submenu v-permission="['PROJECT_PERFORMANCE_TEST:READ']"
index="4" popper-class="submenu">
<template v-slot:title>{{ $t('commons.test') }}</template>
<ms-recent-list ref="testRecent" :options="testRecent"/>
<el-divider/>
<ms-show-all :index="'/performance/test/all'"/>
<ms-create-button v-permission="['PROJECT_PERFORMANCE_TEST:READ+CREATE']"
:index="'/performance/test/create'"
:title="$t('load_test.create')"/>
</el-submenu>
<el-submenu v-permission="['PROJECT_PERFORMANCE_REPORT:READ']"
index="5" popper-class="submenu">
<template v-slot:title>{{ $t('commons.report') }}</template>
<ms-recent-list ref="reportRecent" :options="reportRecent"/>
<el-divider/>
<ms-show-all :index="'/performance/report/all'"/>
</el-submenu>
<el-menu-item :index="'/performance/test/all'" v-permission="['PROJECT_PERFORMANCE_TEST:READ']">
{{ $t('commons.test') }}
</el-menu-item>
<el-menu-item :index="'/performance/report/all'" v-permission="['PROJECT_PERFORMANCE_REPORT:READ']">
{{ $t('commons.test') }}
</el-menu-item>
</el-menu>
</el-col>
<el-col :span="4">