fix: 测试:【组件优化第五批】树下拉框-属性-选项管理添加子选项,子选项层级为第六层级时,选项名称不能进行编辑; amis-saas-6427

Change-Id: If5b8a2b4497224584cbd886c2bec98239fbe5dbc
This commit is contained in:
zhou999 2022-09-06 21:01:22 +08:00
parent 31353cb593
commit 979e3509d3

View File

@ -269,7 +269,7 @@ export default class TreeOptionControl extends React.Component<
}
@autobind
addChildOption(pathStr: string) {
if (pathStr.split('-').length >= 7) {
if (pathStr.split('-').length >= 6) {
toast.warning('层级过深,建议使用【接口获取】管理选项', {closeButton: true});
return;
}