fix(接口测试): 修复接口测试首页跳转场景有时不加载模块树的问题

This commit is contained in:
Jianguo-Genius 2024-12-16 15:40:43 +08:00 committed by song-cc-rock
parent 17fc3df43e
commit f5ffd2fffd
1 changed files with 3 additions and 4 deletions

View File

@ -42,17 +42,16 @@
import SelectMenu from '@/business/commons/SelectMenu';
import MsAddBasisScenario from '@/business/automation/scenario/AddBasisScenario';
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 ApiImport from './common/ScenarioImport';
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 {
addScenarioModule,
delScenarioModule,
dragScenarioModule,
editScenarioModule,
getModuleByProjectId,
getModuleByRelevanceProjectId,
posScenarioModule,
postModuleByProjectId,
@ -150,7 +149,7 @@ export default {
};
},
mounted() {
if(this.$route.params && !this.$route.params.versionId) {
if (this.$route.params) {
this.list()
}
},