Commit 17d39cb4 authored by 田翔's avatar 田翔

fix: 代码修复

parent 44a330ef
Pipeline #81744 failed with stages
......@@ -109,7 +109,6 @@ const Right = () => {
if (code === 0) {
let array = (data[0].children.length > 0 && [...data[0].children]) || [];
let list = [];
console.log('array', array)
array.map((i, j) => {
let aa = [];
i.children.map(k => {
......@@ -131,6 +130,9 @@ const Right = () => {
const mapTreeMoblie = (org) => {
const haveChildren = Array.isArray(org.children) && org.children.length > 0;
if (!haveChildren && ['flutter', 'MobileGCK'].includes(org?.product)) {
return null
}
if (org.key) {
if (haveChildren) {
return (
......@@ -146,9 +148,6 @@ const Right = () => {
}
return <TreeNode value={org.pageUrl || org.menuID} title={org.text} icon={<MobileOutlined />} disabled />;
}
if (!haveChildren && org?.product === 'flutter') {
return null
}
return haveChildren ? (
<TreeNode
value={org.pageUrl || org.menuID}
......@@ -304,6 +303,7 @@ const Right = () => {
allowClear
treeDefaultExpandAll
treeIcon
// onSearch={(value) => cardSettingOther(value, 'url')}
onChange={(value) => cardSettingOther(value, 'url')}
>
{moblieList.map(i => mapTreeMoblie(i))}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment