fix(项目设置): 左侧模块树创建同名模块无提示

--bug=1018621 --user=李玉号 【项目设置】文件管理-左侧模块树-创建同名模块无提示
https://www.tapd.cn/55049933/s/1271112
This commit is contained in:
shiziyuan9527 2022-10-21 17:03:11 +08:00 committed by lyh
parent 6bba28235a
commit 0481b88302

View File

@ -348,9 +348,8 @@ export default {
});
} else if (this.operation_type_add === 'external') {
let param = {};
param.parentId = node.id;
param.level = 1;
if (data.id != 'root') {
if (data.id !== 'root') {
//
param.parentId = data.id;
param.level = data.level + 1;