refactor: 工作台菜单控制
This commit is contained in:
parent
a578aebd3e
commit
c0fe47a542
|
@ -8,7 +8,7 @@
|
||||||
@select="handleSelect"
|
@select="handleSelect"
|
||||||
:key="menuKey"
|
:key="menuKey"
|
||||||
router>
|
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']">
|
v-permission="['PROJECT_API_DEFINITION:READ','PROJECT_API_SCENARIO:READ','PROJECT_API_REPORT:READ']">
|
||||||
{{ $t('commons.my_workstation') }}
|
{{ $t('commons.my_workstation') }}
|
||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
|
|
|
@ -8,7 +8,6 @@ import Track from "@/business/components/track/router";
|
||||||
import ReportStatistics from "@/business/components/reportstatistics/router";
|
import ReportStatistics from "@/business/components/reportstatistics/router";
|
||||||
import Project from "@/business/components/project/router";
|
import Project from "@/business/components/project/router";
|
||||||
import {getCurrentUserId} from "@/common/js/utils";
|
import {getCurrentUserId} from "@/common/js/utils";
|
||||||
import {workstation} from "@/business/components/xpack/router";
|
|
||||||
|
|
||||||
// const requireContext = require.context('@/business/components/xpack/', true, /router\.js$/);
|
// const requireContext = require.context('@/business/components/xpack/', true, /router\.js$/);
|
||||||
// const Report = requireContext.keys().map(key => requireContext(key).report);
|
// const Report = requireContext.keys().map(key => requireContext(key).report);
|
||||||
|
|
Loading…
Reference in New Issue