Commit 8a55bae6 authored by 前端-黄佳鑫's avatar 前端-黄佳鑫

feat: 首页能力 saas新需求

parent 63fe8e32
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment