fix: 首页跳转场景修改页面控制套报错

修复首页跳转场景修改页面控制套报错的问题
This commit is contained in:
song.tianyang 2021-01-06 10:17:55 +08:00
parent b402acfeda
commit 9b22917e8c
1 changed files with 6 additions and 1 deletions

View File

@ -87,7 +87,7 @@ export default {
isHide: true,
activeName: 'default',
currentModule: null,
moduleOptions: {},
moduleOptions: [],
tabs: [],
trashEnable: false,
selectNodeIds: [],
@ -114,7 +114,12 @@ export default {
this.$post(url, {id:scenarioId,projectId:projectId}, response => {
let data = response.data;
if(data!=null){
//
if(JSON.stringify(this.moduleOptions) === '{}' ){
this.$refs.nodeTree.list();
}
let row = data.listObject[0];
row.tags = JSON.parse(row.tags);
this.editScenario(row);
}
});