This commit is contained in:
Captain.B 2020-02-26 16:40:13 +08:00
parent 07010dea55
commit a77ba70aa7
3 changed files with 7 additions and 7 deletions

View File

@ -7,7 +7,7 @@
</el-menu-item>
<el-submenu index="3" popper-class="submenu" v-permission="['test_manager']">
<template slot="title">项目</template>
<recent-project/>
<ms-recent-project/>
<el-divider/>
<el-menu-item index="/project">
<font-awesome-icon :icon="['fa', 'list-ul']"/>
@ -16,7 +16,7 @@
</el-submenu>
<el-submenu index="4" popper-class="submenu" v-permission="['test_manager', 'test_user']">
<template slot="title">测试</template>
<recent-test-plan/>
<ms-recent-test-plan/>
<el-divider/>
<el-menu-item index="/allTest">
<font-awesome-icon :icon="['fa', 'list-ul']"/>
@ -36,12 +36,12 @@
</template>
<script>
import RecentTestPlan from "./testPlan/RecentTestPlan";
import RecentProject from "./project/RecentProject";
import MsRecentTestPlan from "./testPlan/RecentTestPlan";
import MsRecentProject from "./project/RecentProject";
export default {
name: "MsMenus",
components: {RecentTestPlan, RecentProject}
components: {MsRecentTestPlan, MsRecentProject}
}
</script>

View File

@ -12,7 +12,7 @@
<script>
export default {
name: "RecentProject",
name: "MsRecentProject",
mounted() {
this.$get('/project/recent/5', (response) => {
this.recentProjects = response.data;

View File

@ -12,7 +12,7 @@
<script>
export default {
name: "RecentTestPlan",
name: "MsRecentTestPlan",
mounted() {
this.$get('/testplan/recent/5', (response) => {
this.recentTestPlans = response.data;