refactor: 工作台菜单控制

This commit is contained in:
CaptainB 2021-10-21 17:56:22 +08:00 committed by 刘瑞斌
parent a5c2d833aa
commit db5b30e215
2 changed files with 1 additions and 2 deletions

View File

@ -8,7 +8,7 @@
@select="handleSelect"
:key="menuKey"
router>
<el-menu-item index="/workstation" v-if="check('my_workstation')" onselectstart="return false"
<el-menu-item index="/workstation" v-xpack onselectstart="return false"
v-permission="['PROJECT_API_DEFINITION:READ','PROJECT_API_SCENARIO:READ','PROJECT_API_REPORT:READ']">
{{ $t('commons.my_workstation') }}
</el-menu-item>

View File

@ -8,7 +8,6 @@ import Track from "@/business/components/track/router";
import ReportStatistics from "@/business/components/reportstatistics/router";
import Project from "@/business/components/project/router";
import {getCurrentUserId} from "@/common/js/utils";
import {workstation} from "@/business/components/xpack/router";
// const requireContext = require.context('@/business/components/xpack/', true, /router\.js$/);
// const Report = requireContext.keys().map(key => requireContext(key).report);