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
前端-黄佳鑫
jinfa-platform
Commits
68e28fea
Commit
68e28fea
authored
Jun 08, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复 没有渠道数据 一直loading的问题
parent
d24a8fcd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
index.tsx
...pages/member/memberImport/components/MemberForm/index.tsx
+5
-3
utils.tsx
src/pages/member/utils.tsx
+2
-1
No files found.
src/pages/member/memberImport/components/MemberForm/index.tsx
View file @
68e28fea
...
...
@@ -118,10 +118,12 @@ const MemberForm: React.FC<MemberFormProps> = ({
if
(
channelRes
.
code
!==
1000
)
{
return
;
}
cons
t
{
channelTypes
=
[]
,
upperMembers
=
[]
,
le
t
{
channelTypes
,
upperMembers
,
}
=
channelRes
.
data
;
channelTypes
=
channelTypes
||
[];
upperMembers
=
upperMembers
||
[];
const
channelType
=
channelTypes
.
map
(
item
=>
({
label
:
item
.
channelTypeName
,
value
:
item
.
channelTypeId
}));
...
...
src/pages/member/utils.tsx
View file @
68e28fea
...
...
@@ -174,7 +174,7 @@ export function createMemberSchema(elements: ElementType[]) {
return
components
;
}
for
(
let
item
of
elements
)
{
components
[
item
.
fieldName
]
=
getFieldType
(
item
);
components
[
item
.
fieldName
as
string
]
=
getFieldType
(
item
);
}
return
components
;
};
\ No newline at end of file
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