fix(ui): 修复登录与并发请求并统一表格、主题和页面展示
验证:868 项单测、ESLint、Prettier、UI 依赖审计和差异检查通过。
This commit is contained in:
@@ -16,6 +16,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
import { formatPercent } from '../../helpers/safeDisplay';
|
||||
|
||||
import React, { useMemo, useState, useEffect, useCallback } from 'react';
|
||||
import { Card, Spin, Tag, Progress } from '@/components/ui';
|
||||
@@ -130,7 +131,7 @@ const UserSurveyStats = ({ title, icon, t }) => {
|
||||
},
|
||||
{
|
||||
key: () => t('占比'),
|
||||
value: (datum) => `${(datum?.percentage || 0).toFixed(1)}%`,
|
||||
value: (datum) => formatPercent(datum?.percentage || 0, 1),
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -186,7 +187,7 @@ const UserSurveyStats = ({ title, icon, t }) => {
|
||||
},
|
||||
{
|
||||
key: () => t('占比'),
|
||||
value: (datum) => `${(datum?.percentage || 0).toFixed(1)}%`,
|
||||
value: (datum) => formatPercent(datum?.percentage || 0, 1),
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user