diff --git a/src/views/model/devicemodel/editModel.vue b/src/views/model/devicemodel/editModel.vue index 4eb030c..5abf849 100644 --- a/src/views/model/devicemodel/editModel.vue +++ b/src/views/model/devicemodel/editModel.vue @@ -471,7 +471,7 @@ function getTreeselect() { devicemodelOptions.value = []; const data = { id: 0, modelName: '顶级节点', children: [] }; const parentData = response.data.filter(item => { - return (item.modelTypeId == '1'); + return (item.modelTypeId == 'model_group'); }); data.children = proxy.handleTree(parentData, "id", "pid"); devicemodelOptions.value.push(data);