Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈智峰
jinfa-admin
Commits
e641e13a
Commit
e641e13a
authored
Jan 20, 2022
by
Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改活动模块添加/删除处理
parent
f0c5751a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
web.tsx
...ment/activePage/fixtures/components/ComponentTree/web.tsx
+4
-1
No files found.
src/pages/marketingManage/marketing/marketingActivitiesManagement/activePage/fixtures/components/ComponentTree/web.tsx
View file @
e641e13a
...
...
@@ -343,7 +343,10 @@ const WebComponentModule: React.FC<Iprops> = (props: Iprops) => {
})
return
;
}
const
newKey
=
Object
.
keys
(
pageConfig
).
length
+
1
const
childNodes
=
[...
pageConfig
[
0
].
childNodes
];
childNodes
.
sort
((
a
,
b
)
=>
+
a
-
+
b
);
const
newKey
=
childNodes
[
childNodes
.
length
-
1
]
+
1
addChildComponent
({
newKey
:
`
${
newKey
}
`
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment