fix(账号): 固化超级管理员身份
This commit is contained in:
@@ -8,6 +8,7 @@ import { useDevTaskStore } from '@/stores/useDevTaskStore';
|
||||
import { useRequirementStore } from '@/stores/useRequirementStore';
|
||||
import { useMemberStore } from '@/stores/useMemberStore';
|
||||
import { useAuthStore } from '@/stores/useAuthStore';
|
||||
import { resolveMemberDisplayName } from '@/lib/member-system';
|
||||
import type { Priority } from '@/lib/derive';
|
||||
import type { BugSeverity } from '@/lib/bug';
|
||||
|
||||
@@ -60,6 +61,7 @@ export function BugCreateModal({ testCaseId, onClose }: Props) {
|
||||
|
||||
const handleSubmit = () => {
|
||||
if (!canSubmit) return;
|
||||
const operator = user ? resolveMemberDisplayName(user.id, members) : '系统';
|
||||
createBug({
|
||||
versionId: tc?.versionId || '',
|
||||
testCaseId,
|
||||
@@ -68,10 +70,10 @@ export function BugCreateModal({ testCaseId, onClose }: Props) {
|
||||
description: description.trim(),
|
||||
severity,
|
||||
priority,
|
||||
reportedBy: user?.name || '系统',
|
||||
reportedBy: operator,
|
||||
assigneeId,
|
||||
images: images.length > 0 ? images : undefined,
|
||||
}, user?.name || '系统');
|
||||
}, operator);
|
||||
onClose();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user