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
a8afeaa1
Commit
a8afeaa1
authored
Mar 10, 2022
by
Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 首页数据因权限问题显示为空,仍然保留标题bug
parent
a38150e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
useViewRequest.tsx
src/pages/home/hooks/useViewRequest.tsx
+4
-1
No files found.
src/pages/home/hooks/useViewRequest.tsx
View file @
a8afeaa1
...
...
@@ -71,7 +71,10 @@ function useViewRequest<T, P>(fn: (postData: P) => Promise<IRequestSuccess<T>>,
Object
.
keys
(
responseData
).
forEach
((
_row
)
=>
{
if
(
responseData
[
_row
]
&&
responseData
[
_row
].
length
!==
0
)
{
result
[
_row
]
=
responseData
[
_row
]?.
filter
((
_item
)
=>
urls
.
includes
(
_item
.
link
));
const
tempData
=
responseData
[
_row
]?.
filter
((
_item
)
=>
urls
.
includes
(
_item
.
link
));
if
(
tempData
.
length
!==
0
)
{
result
[
_row
]
=
tempData
}
}
})
console
.
log
(
result
,
"result"
);
...
...
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