bug修复

This commit is contained in:
zh
2025-12-16 18:13:53 +08:00
parent 1e01f3faeb
commit 2f33b33579
44 changed files with 854 additions and 703 deletions

View File

@ -548,7 +548,15 @@ const renderModel = async (data, model) => {
: selectedNode.parentId
: undefined
}
TreeApi.addOtherSource(DbOption)
let res = await TreeApi.addOtherSource(DbOption)
if(![0, 200].includes(res.code)) {
return
}
ElMessage.closeAll()
ElMessage({
message: '添加成功',
type: 'success'
})
DbOption.isShow = true
DbOption.params = JSON.stringify(DbOption.params)
cusAddNodes(window.treeObj, DbOption.parentId, [DbOption])