fix(ui): 修复登录与并发请求并统一表格、主题和页面展示
验证:868 项单测、ESLint、Prettier、UI 依赖审计和差异检查通过。
This commit is contained in:
@@ -16,6 +16,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
import { formatIdReference } from '../../helpers/safeDisplay';
|
||||
import { formatUserReference } from '../../helpers/safeDisplay';
|
||||
|
||||
import {
|
||||
EyeOff as ActionEyeOff,
|
||||
@@ -512,7 +514,7 @@ const OrgTokens = ({ orgId, orgRole }) => {
|
||||
key: 'creator_name',
|
||||
dataIndex: 'creator_name',
|
||||
width: 140,
|
||||
render: (name, record) => name || `User#${record.user_id}`,
|
||||
render: (name, record) => formatUserReference(name, record.user_id),
|
||||
},
|
||||
]
|
||||
: []),
|
||||
@@ -1348,7 +1350,9 @@ const EditTokenModal = ({
|
||||
(libraryRes.data.data || [])
|
||||
.filter((policy) => policy.enabled)
|
||||
.map((policy) => ({
|
||||
label: nameById.get(policy.skill_id) || `#${policy.skill_id}`,
|
||||
label:
|
||||
nameById.get(policy.skill_id) ||
|
||||
formatIdReference(policy.skill_id),
|
||||
value: policy.skill_id,
|
||||
})),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user