refactor: 去掉不用的引用

This commit is contained in:
CaptainB 2021-11-29 18:18:26 +08:00 committed by 刘瑞斌
parent 568bb275e4
commit c17be67a9a
8 changed files with 6 additions and 15 deletions

View File

@ -31,13 +31,12 @@
import MsRecentList from "../../common/head/RecentList"; import MsRecentList from "../../common/head/RecentList";
import MsShowAll from "../../common/head/ShowAll"; import MsShowAll from "../../common/head/ShowAll";
import MsCreateButton from "../../common/head/CreateButton"; import MsCreateButton from "../../common/head/CreateButton";
import SearchList from "@/business/components/common/head/SearchList";
import ProjectChange from "@/business/components/common/head/ProjectSwitch"; import ProjectChange from "@/business/components/common/head/ProjectSwitch";
import {mapGetters} from "vuex"; import {mapGetters} from "vuex";
export default { export default {
name: "MsApiHeaderMenus", name: "MsApiHeaderMenus",
components: {SearchList, MsCreateButton, MsShowAll, MsRecentList, ProjectChange}, components: {MsCreateButton, MsShowAll, MsRecentList, ProjectChange},
data() { data() {
return { return {
currentPath: '', currentPath: '',

View File

@ -9,7 +9,9 @@
</span> </span>
</template> </template>
<search-list :current-project.sync="currentProject"/> <search-list :current-project.sync="currentProject"/>
<el-divider/> <div v-permission="['WORKSPACE_PROJECT_MANAGER:READ']">
<el-divider/>
</div>
<el-menu-item :index="'/setting/project/create'" v-permission="['WORKSPACE_PROJECT_MANAGER:READ+CREATE']"> <el-menu-item :index="'/setting/project/create'" v-permission="['WORKSPACE_PROJECT_MANAGER:READ+CREATE']">
<font-awesome-icon :icon="['fa', 'plus']"/> <font-awesome-icon :icon="['fa', 'plus']"/>
<span style="padding-left: 7px;">{{ $t("project.create") }}</span> <span style="padding-left: 7px;">{{ $t("project.create") }}</span>

View File

@ -25,14 +25,12 @@
import MsRecentList from "../../common/head/RecentList"; import MsRecentList from "../../common/head/RecentList";
import MsCreateButton from "../../common/head/CreateButton"; import MsCreateButton from "../../common/head/CreateButton";
import MsShowAll from "../../common/head/ShowAll"; import MsShowAll from "../../common/head/ShowAll";
import SearchList from "@/business/components/common/head/SearchList";
import ProjectChange from "@/business/components/common/head/ProjectSwitch"; import ProjectChange from "@/business/components/common/head/ProjectSwitch";
export default { export default {
name: "PerformanceHeaderMenus", name: "PerformanceHeaderMenus",
components: { components: {
ProjectChange, ProjectChange,
SearchList,
MsCreateButton, MsCreateButton,
MsShowAll, MsShowAll,
MsRecentList, MsRecentList,

View File

@ -47,12 +47,11 @@
import MsShowAll from "@/business/components/common/head/ShowAll"; import MsShowAll from "@/business/components/common/head/ShowAll";
import MsRecentList from "@/business/components/common/head/RecentList"; import MsRecentList from "@/business/components/common/head/RecentList";
import MsCreateButton from "@/business/components/common/head/CreateButton"; import MsCreateButton from "@/business/components/common/head/CreateButton";
import SearchList from "@/business/components/common/head/SearchList";
import ProjectChange from "@/business/components/common/head/ProjectSwitch"; import ProjectChange from "@/business/components/common/head/ProjectSwitch";
export default { export default {
name: "ProjectHeaderMenus", name: "ProjectHeaderMenus",
components: {ProjectChange, SearchList, MsShowAll, MsRecentList, MsCreateButton}, components: {ProjectChange, MsShowAll, MsRecentList, MsCreateButton},
data() { data() {
return { return {
currentProject: '', currentProject: '',

View File

@ -111,7 +111,6 @@ import EnvironmentEdit from "@/business/components/api/test/components/environme
import MsAsideItem from "@/business/components/common/components/MsAsideItem"; import MsAsideItem from "@/business/components/common/components/MsAsideItem";
import MsAsideContainer from "@/business/components/common/components/MsAsideContainer"; import MsAsideContainer from "@/business/components/common/components/MsAsideContainer";
import ProjectSwitch from "@/business/components/common/head/ProjectSwitch"; import ProjectSwitch from "@/business/components/common/head/ProjectSwitch";
import SearchList from "@/business/components/common/head/SearchList";
import {downloadFile, getCurrentProjectID} from "@/common/js/utils"; import {downloadFile, getCurrentProjectID} from "@/common/js/utils";
import EnvironmentImport from "@/business/components/project/menu/EnvironmentImport"; import EnvironmentImport from "@/business/components/project/menu/EnvironmentImport";
import MsMainContainer from "@/business/components/common/components/MsMainContainer"; import MsMainContainer from "@/business/components/common/components/MsMainContainer";
@ -123,7 +122,6 @@ export default {
MsContainer, MsContainer,
MsMainContainer, MsMainContainer,
EnvironmentImport, EnvironmentImport,
SearchList,
ProjectSwitch, ProjectSwitch,
MsAsideContainer, MsAsideContainer,
MsAsideItem, MsAsideItem,

View File

@ -73,7 +73,6 @@ import EnvironmentEdit from "@/business/components/api/test/components/environme
import MsAsideItem from "@/business/components/common/components/MsAsideItem"; import MsAsideItem from "@/business/components/common/components/MsAsideItem";
import MsAsideContainer from "@/business/components/common/components/MsAsideContainer"; import MsAsideContainer from "@/business/components/common/components/MsAsideContainer";
import ProjectSwitch from "@/business/components/common/head/ProjectSwitch"; import ProjectSwitch from "@/business/components/common/head/ProjectSwitch";
import SearchList from "@/business/components/common/head/SearchList";
import EnvironmentImport from "@/business/components/project/menu/EnvironmentImport"; import EnvironmentImport from "@/business/components/project/menu/EnvironmentImport";
import EnvironmentGroupRow from "@/business/components/settings/workspace/environment/EnvironmentGroupRow"; import EnvironmentGroupRow from "@/business/components/settings/workspace/environment/EnvironmentGroupRow";
import EditEnvironmentGroup from "@/business/components/settings/workspace/environment/EditEnvironmentGroup"; import EditEnvironmentGroup from "@/business/components/settings/workspace/environment/EditEnvironmentGroup";
@ -84,7 +83,6 @@ export default {
components: { components: {
EditEnvironmentGroup, EditEnvironmentGroup,
EnvironmentImport, EnvironmentImport,
SearchList,
ProjectSwitch, ProjectSwitch,
MsAsideContainer, MsAsideContainer,
MsAsideItem, MsAsideItem,

View File

@ -121,7 +121,6 @@ import EnvironmentEdit from "@/business/components/api/test/components/environme
import MsAsideItem from "@/business/components/common/components/MsAsideItem"; import MsAsideItem from "@/business/components/common/components/MsAsideItem";
import MsAsideContainer from "@/business/components/common/components/MsAsideContainer"; import MsAsideContainer from "@/business/components/common/components/MsAsideContainer";
import ProjectSwitch from "@/business/components/common/head/ProjectSwitch"; import ProjectSwitch from "@/business/components/common/head/ProjectSwitch";
import SearchList from "@/business/components/common/head/SearchList";
import {downloadFile, strMapToObj} from "@/common/js/utils"; import {downloadFile, strMapToObj} from "@/common/js/utils";
import EnvironmentImport from "@/business/components/project/menu/EnvironmentImport"; import EnvironmentImport from "@/business/components/project/menu/EnvironmentImport";
import ShowMoreBtn from "@/business/components/track/case/components/ShowMoreBtn"; import ShowMoreBtn from "@/business/components/track/case/components/ShowMoreBtn";
@ -133,7 +132,6 @@ export default {
components: { components: {
EnvGroupCascader, EnvGroupCascader,
EnvironmentImport, EnvironmentImport,
SearchList,
ProjectSwitch, ProjectSwitch,
MsAsideContainer, MsAsideContainer,
MsAsideItem, MsAsideItem,

View File

@ -41,13 +41,12 @@
import MsShowAll from "../../common/head/ShowAll"; import MsShowAll from "../../common/head/ShowAll";
import MsRecentList from "../../common/head/RecentList"; import MsRecentList from "../../common/head/RecentList";
import MsCreateButton from "../../common/head/CreateButton"; import MsCreateButton from "../../common/head/CreateButton";
import SearchList from "@/business/components/common/head/SearchList";
import ProjectChange from "@/business/components/common/head/ProjectSwitch"; import ProjectChange from "@/business/components/common/head/ProjectSwitch";
import {getCurrentProjectID} from "@/common/js/utils"; import {getCurrentProjectID} from "@/common/js/utils";
export default { export default {
name: "TrackHeaderMenus", name: "TrackHeaderMenus",
components: {ProjectChange, SearchList, MsShowAll, MsRecentList, MsCreateButton}, components: {ProjectChange, MsShowAll, MsRecentList, MsCreateButton},
data() { data() {
return { return {
testPlanViewPath: '', testPlanViewPath: '',