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 { formatUserReference } from '../../helpers/safeDisplay';
|
||||
import {
|
||||
Copy as ActionCopy,
|
||||
Search as ActionSearch,
|
||||
@@ -250,7 +251,10 @@ const OrgPromptRecords = ({ orgId }) => {
|
||||
() => [
|
||||
{ value: '', label: t('全部成员') },
|
||||
...members.map((member) => {
|
||||
const name = member.name || member.username || `User#${member.user_id}`;
|
||||
const name = formatUserReference(
|
||||
member.name || member.username,
|
||||
member.user_id,
|
||||
);
|
||||
return {
|
||||
value: member.member_id,
|
||||
label:
|
||||
@@ -271,7 +275,7 @@ const OrgPromptRecords = ({ orgId }) => {
|
||||
member?.remark ||
|
||||
member?.display_name ||
|
||||
record.username ||
|
||||
`User#${record.user_id}`
|
||||
formatUserReference(record.name || record.username, record.user_id)
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user