Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
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
shenshaokai
jinfa-platform
Commits
1fdeccd1
Commit
1fdeccd1
authored
Oct 20, 2021
by
Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改品类导航页bug
parent
c5675d3f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
useFilterSameOption.tsx
...e/categoryNavigation/common/hooks/useFilterSameOption.tsx
+3
-0
editPanel.tsx
...ate/categoryNavigation/components/EditPanel/editPanel.tsx
+1
-3
No files found.
src/pages/mobileTemplate/categoryNavigation/common/hooks/useFilterSameOption.tsx
View file @
1fdeccd1
...
...
@@ -58,6 +58,9 @@ export function useFilterSameOption() {
}
childNodes
.
forEach
(
_son
=>
{
const
sonData
=
pageConfig
[
_son
];
if
(
!
sonData
)
{
return
;
}
const
tempData
=
keyFunc
[
type
]?.(
sonData
.
props
);
result
[
name
].
push
(
tempData
.
id
);
});
...
...
src/pages/mobileTemplate/categoryNavigation/components/EditPanel/editPanel.tsx
View file @
1fdeccd1
...
...
@@ -67,7 +67,6 @@ const EditPanel = () => {
message
.
info
(
"请先选择一级导航类型"
);
}
const
primaryTabProps
=
pageConfig
[
domKey
!
].
props
;
console
.
warn
(
"fukc you"
,
primaryTabProps
)
setFormValue
({
primary
:
primaryTabProps
?.
id
,
title
:
primaryTabProps
?.
name
,
...
...
@@ -79,7 +78,6 @@ const EditPanel = () => {
const
componentType
:
keyof
typeof
ComponentSchema
=
(
selectedInfo
as
any
)?.
otherProps
?.
type
;
const
targetSchema
=
ComponentSchema
[
componentType
]
||
null
;
console
.
warn
(
selectedInfo
,
componentType
)
if
(
targetSchema
)
{
/** 这里需要处理一下FormVlaue */
const
tempFormValue
=
{
...
...
@@ -350,7 +348,7 @@ const EditPanel = () => {
</
div
>
<
div
className=
{
styles
.
footer
}
>
<
Space
>
<
Button
>
取消
</
Button
>
<
Button
onClick=
{
()
=>
setVisible
(
false
)
}
>
取消
</
Button
>
<
Button
type=
"primary"
onClick=
{
()
=>
formActions
.
submit
()
}
>
确认
</
Button
>
</
Space
>
</
div
>
...
...
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