parent
b402acfeda
commit
9b22917e8c
|
@ -87,7 +87,7 @@ export default {
|
||||||
isHide: true,
|
isHide: true,
|
||||||
activeName: 'default',
|
activeName: 'default',
|
||||||
currentModule: null,
|
currentModule: null,
|
||||||
moduleOptions: {},
|
moduleOptions: [],
|
||||||
tabs: [],
|
tabs: [],
|
||||||
trashEnable: false,
|
trashEnable: false,
|
||||||
selectNodeIds: [],
|
selectNodeIds: [],
|
||||||
|
@ -114,7 +114,12 @@ export default {
|
||||||
this.$post(url, {id:scenarioId,projectId:projectId}, response => {
|
this.$post(url, {id:scenarioId,projectId:projectId}, response => {
|
||||||
let data = response.data;
|
let data = response.data;
|
||||||
if(data!=null){
|
if(data!=null){
|
||||||
|
//如果树未加载
|
||||||
|
if(JSON.stringify(this.moduleOptions) === '{}' ){
|
||||||
|
this.$refs.nodeTree.list();
|
||||||
|
}
|
||||||
let row = data.listObject[0];
|
let row = data.listObject[0];
|
||||||
|
row.tags = JSON.parse(row.tags);
|
||||||
this.editScenario(row);
|
this.editScenario(row);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue