refactor: 去掉不用的引用
This commit is contained in:
parent
568bb275e4
commit
c17be67a9a
|
@ -31,13 +31,12 @@
|
|||
import MsRecentList from "../../common/head/RecentList";
|
||||
import MsShowAll from "../../common/head/ShowAll";
|
||||
import MsCreateButton from "../../common/head/CreateButton";
|
||||
import SearchList from "@/business/components/common/head/SearchList";
|
||||
import ProjectChange from "@/business/components/common/head/ProjectSwitch";
|
||||
import {mapGetters} from "vuex";
|
||||
|
||||
export default {
|
||||
name: "MsApiHeaderMenus",
|
||||
components: {SearchList, MsCreateButton, MsShowAll, MsRecentList, ProjectChange},
|
||||
components: {MsCreateButton, MsShowAll, MsRecentList, ProjectChange},
|
||||
data() {
|
||||
return {
|
||||
currentPath: '',
|
||||
|
|
|
@ -9,7 +9,9 @@
|
|||
</span>
|
||||
</template>
|
||||
<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']">
|
||||
<font-awesome-icon :icon="['fa', 'plus']"/>
|
||||
<span style="padding-left: 7px;">{{ $t("project.create") }}</span>
|
||||
|
|
|
@ -25,14 +25,12 @@
|
|||
import MsRecentList from "../../common/head/RecentList";
|
||||
import MsCreateButton from "../../common/head/CreateButton";
|
||||
import MsShowAll from "../../common/head/ShowAll";
|
||||
import SearchList from "@/business/components/common/head/SearchList";
|
||||
import ProjectChange from "@/business/components/common/head/ProjectSwitch";
|
||||
|
||||
export default {
|
||||
name: "PerformanceHeaderMenus",
|
||||
components: {
|
||||
ProjectChange,
|
||||
SearchList,
|
||||
MsCreateButton,
|
||||
MsShowAll,
|
||||
MsRecentList,
|
||||
|
|
|
@ -47,12 +47,11 @@
|
|||
import MsShowAll from "@/business/components/common/head/ShowAll";
|
||||
import MsRecentList from "@/business/components/common/head/RecentList";
|
||||
import MsCreateButton from "@/business/components/common/head/CreateButton";
|
||||
import SearchList from "@/business/components/common/head/SearchList";
|
||||
import ProjectChange from "@/business/components/common/head/ProjectSwitch";
|
||||
|
||||
export default {
|
||||
name: "ProjectHeaderMenus",
|
||||
components: {ProjectChange, SearchList, MsShowAll, MsRecentList, MsCreateButton},
|
||||
components: {ProjectChange, MsShowAll, MsRecentList, MsCreateButton},
|
||||
data() {
|
||||
return {
|
||||
currentProject: '',
|
||||
|
|
|
@ -111,7 +111,6 @@ import EnvironmentEdit from "@/business/components/api/test/components/environme
|
|||
import MsAsideItem from "@/business/components/common/components/MsAsideItem";
|
||||
import MsAsideContainer from "@/business/components/common/components/MsAsideContainer";
|
||||
import ProjectSwitch from "@/business/components/common/head/ProjectSwitch";
|
||||
import SearchList from "@/business/components/common/head/SearchList";
|
||||
import {downloadFile, getCurrentProjectID} from "@/common/js/utils";
|
||||
import EnvironmentImport from "@/business/components/project/menu/EnvironmentImport";
|
||||
import MsMainContainer from "@/business/components/common/components/MsMainContainer";
|
||||
|
@ -123,7 +122,6 @@ export default {
|
|||
MsContainer,
|
||||
MsMainContainer,
|
||||
EnvironmentImport,
|
||||
SearchList,
|
||||
ProjectSwitch,
|
||||
MsAsideContainer,
|
||||
MsAsideItem,
|
||||
|
|
|
@ -73,7 +73,6 @@ import EnvironmentEdit from "@/business/components/api/test/components/environme
|
|||
import MsAsideItem from "@/business/components/common/components/MsAsideItem";
|
||||
import MsAsideContainer from "@/business/components/common/components/MsAsideContainer";
|
||||
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 EnvironmentGroupRow from "@/business/components/settings/workspace/environment/EnvironmentGroupRow";
|
||||
import EditEnvironmentGroup from "@/business/components/settings/workspace/environment/EditEnvironmentGroup";
|
||||
|
@ -84,7 +83,6 @@ export default {
|
|||
components: {
|
||||
EditEnvironmentGroup,
|
||||
EnvironmentImport,
|
||||
SearchList,
|
||||
ProjectSwitch,
|
||||
MsAsideContainer,
|
||||
MsAsideItem,
|
||||
|
|
|
@ -121,7 +121,6 @@ import EnvironmentEdit from "@/business/components/api/test/components/environme
|
|||
import MsAsideItem from "@/business/components/common/components/MsAsideItem";
|
||||
import MsAsideContainer from "@/business/components/common/components/MsAsideContainer";
|
||||
import ProjectSwitch from "@/business/components/common/head/ProjectSwitch";
|
||||
import SearchList from "@/business/components/common/head/SearchList";
|
||||
import {downloadFile, strMapToObj} from "@/common/js/utils";
|
||||
import EnvironmentImport from "@/business/components/project/menu/EnvironmentImport";
|
||||
import ShowMoreBtn from "@/business/components/track/case/components/ShowMoreBtn";
|
||||
|
@ -133,7 +132,6 @@ export default {
|
|||
components: {
|
||||
EnvGroupCascader,
|
||||
EnvironmentImport,
|
||||
SearchList,
|
||||
ProjectSwitch,
|
||||
MsAsideContainer,
|
||||
MsAsideItem,
|
||||
|
|
|
@ -41,13 +41,12 @@
|
|||
import MsShowAll from "../../common/head/ShowAll";
|
||||
import MsRecentList from "../../common/head/RecentList";
|
||||
import MsCreateButton from "../../common/head/CreateButton";
|
||||
import SearchList from "@/business/components/common/head/SearchList";
|
||||
import ProjectChange from "@/business/components/common/head/ProjectSwitch";
|
||||
import {getCurrentProjectID} from "@/common/js/utils";
|
||||
|
||||
export default {
|
||||
name: "TrackHeaderMenus",
|
||||
components: {ProjectChange, SearchList, MsShowAll, MsRecentList, MsCreateButton},
|
||||
components: {ProjectChange, MsShowAll, MsRecentList, MsCreateButton},
|
||||
data() {
|
||||
return {
|
||||
testPlanViewPath: '',
|
||||
|
|
Loading…
Reference in New Issue