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
8a55bae6
Commit
8a55bae6
authored
Mar 09, 2022
by
前端-黄佳鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 首页能力 saas新需求
parent
63fe8e32
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
layout.tsx
src/pages/home/components/Centers/layout.tsx
+11
-1
No files found.
src/pages/home/components/Centers/layout.tsx
View file @
8a55bae6
...
...
@@ -7,6 +7,8 @@ import layoutStyles from './center.less';
import
Authorize
from
'../Authorize'
;
import
{
BellOutlined
,
RightOutlined
}
from
'@ant-design/icons'
;
import
cx
from
'classnames'
import
{
getEnableMultiTenancy
}
from
'@/utils/auth'
;
import
{
isEmpty
}
from
'lodash'
;
interface
LayoutType
{
StaticsDataList
:
typeof
StaticsDataList
,
...
...
@@ -118,6 +120,15 @@ export interface IDataListProps {
const
StaticsDataList
=
(
props
:
IDataListProps
)
=>
{
const
{
dataSource
,
title
}
=
props
;
const
enableMultiTenancy
=
getEnableMultiTenancy
()
useEffect
(()
=>
{
if
(
!
isEmpty
(
dataSource
)
&&
enableMultiTenancy
)
{
delete
dataSource
?.
platformList
delete
dataSource
?.
platformScoreList
}
},
[
enableMultiTenancy
])
return
(
<>
{
...
...
@@ -162,7 +173,6 @@ interface TagProps {
const
Tags
=
(
props
:
TagProps
)
=>
{
const
{
tagList
}
=
props
;
console
.
log
(
tagList
,
11086
)
const
list
=
useMemo
(()
=>
{
return
tagList
.
filter
((
_item
)
=>
{
if
(
typeof
_item
.
hasAuth
===
'undefined'
||
_item
.
hasAuth
)
{
...
...
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