fix: Add missing commas in various TypeScript files to ensure proper syntax and prevent potential runtime errors.

This commit is contained in:
2025-07-30 09:29:32 +08:00
parent 035c0602b5
commit 0059c3ba3b
59 changed files with 1154 additions and 173 deletions

View File

@@ -117,7 +117,7 @@ export default function AccountSelection({
acc =>
acc.userName.includes(searchQuery) ||
acc.realName.includes(searchQuery) ||
acc.departmentName.includes(searchQuery)
acc.departmentName.includes(searchQuery),
);
// 处理账号选择

View File

@@ -58,7 +58,7 @@ interface ContentLibrarySelectionProps {
readonly?: boolean;
onConfirm?: (
selectedIds: string[],
selectedItems: ContentLibraryItem[]
selectedItems: ContentLibraryItem[],
) => void;
}
@@ -86,7 +86,7 @@ export default function ContentLibrarySelection({
// 获取已选内容库详细信息
const selectedLibraryObjs = libraries.filter(item =>
selectedLibraries.includes(item.id)
selectedLibraries.includes(item.id),
);
// 删除已选内容库
@@ -161,7 +161,7 @@ export default function ContentLibrarySelection({
onSelect(newSelected);
if (onSelectDetail) {
const selectedObjs = libraries.filter(item =>
newSelected.includes(item.id)
newSelected.includes(item.id),
);
onSelectDetail(selectedObjs);
}

View File

@@ -61,7 +61,7 @@ const SelectionPopup: React.FC<SelectionPopupProps> = ({
wxid: d.wechatId || "",
nickname: d.nickname || "",
usedInPlans: d.usedInPlans || 0,
}))
})),
);
setTotal(res.total || 0);
}
@@ -71,7 +71,7 @@ const SelectionPopup: React.FC<SelectionPopupProps> = ({
setLoading(false);
}
},
[]
[],
);
// 打开弹窗时获取第一页

View File

@@ -137,7 +137,7 @@ export default function FriendSelection({
// 如果有 onSelectDetail 回调,传递完整的好友对象
if (onSelectDetail) {
const selectedFriendObjs = friends.filter(friend =>
newSelectedFriends.includes(friend.id)
newSelectedFriends.includes(friend.id),
);
onSelectDetail(selectedFriendObjs);
}

View File

@@ -59,7 +59,7 @@ export default function GroupSelection({
// 获取已选群聊详细信息
const selectedGroupObjs = groups.filter(group =>
selectedGroups.includes(group.id)
selectedGroups.includes(group.id),
);
// 删除已选群聊
@@ -141,7 +141,7 @@ export default function GroupSelection({
// 如果有 onSelectDetail 回调,传递完整的群聊对象
if (onSelectDetail) {
const selectedGroupObjs = groups.filter(group =>
newSelectedGroups.includes(group.id)
newSelectedGroups.includes(group.id),
);
onSelectDetail(selectedGroupObjs);
}

View File

@@ -20,7 +20,7 @@ const Layout: React.FC<LayoutProps> = ({
const setRealHeight = () => {
document.documentElement.style.setProperty(
"--real-vh",
`${window.innerHeight * 0.01}px`
`${window.innerHeight * 0.01}px`,
);
};
setRealHeight();

View File

@@ -68,7 +68,7 @@ const UploadComponent: React.FC<UploadComponentProps> = ({
Authorization: `Bearer ${localStorage.getItem("token")}`,
},
body: formData,
}
},
);
if (!response.ok) {