fix(接口测试): 修复接口测试首页跳转场景有时不加载模块树的问题
This commit is contained in:
parent
17fc3df43e
commit
f5ffd2fffd
|
@ -42,17 +42,16 @@
|
||||||
import SelectMenu from '@/business/commons/SelectMenu';
|
import SelectMenu from '@/business/commons/SelectMenu';
|
||||||
import MsAddBasisScenario from '@/business/automation/scenario/AddBasisScenario';
|
import MsAddBasisScenario from '@/business/automation/scenario/AddBasisScenario';
|
||||||
import MsNodeTree from '@/business/commons/NodeTree';
|
import MsNodeTree from '@/business/commons/NodeTree';
|
||||||
import { buildTree } from 'metersphere-frontend/src/model/NodeTree';
|
import {buildTree} from 'metersphere-frontend/src/model/NodeTree';
|
||||||
import ModuleTrashButton from '../../definition/components/module/ModuleTrashButton';
|
import ModuleTrashButton from '../../definition/components/module/ModuleTrashButton';
|
||||||
import ApiImport from './common/ScenarioImport';
|
import ApiImport from './common/ScenarioImport';
|
||||||
import MsSearchBar from 'metersphere-frontend/src/components/search/MsSearchBar';
|
import MsSearchBar from 'metersphere-frontend/src/components/search/MsSearchBar';
|
||||||
import { getCurrentProjectID } from 'metersphere-frontend/src/utils/token';
|
import {getCurrentProjectID} from 'metersphere-frontend/src/utils/token';
|
||||||
import {
|
import {
|
||||||
addScenarioModule,
|
addScenarioModule,
|
||||||
delScenarioModule,
|
delScenarioModule,
|
||||||
dragScenarioModule,
|
dragScenarioModule,
|
||||||
editScenarioModule,
|
editScenarioModule,
|
||||||
getModuleByProjectId,
|
|
||||||
getModuleByRelevanceProjectId,
|
getModuleByRelevanceProjectId,
|
||||||
posScenarioModule,
|
posScenarioModule,
|
||||||
postModuleByProjectId,
|
postModuleByProjectId,
|
||||||
|
@ -150,7 +149,7 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
if(this.$route.params && !this.$route.params.versionId) {
|
if (this.$route.params) {
|
||||||
this.list()
|
this.list()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue