refactor event

This commit is contained in:
Timi
2026-08-06 20:53:22 +08:00
parent 1243068fc3
commit 9df6dfaf59
37 changed files with 1584 additions and 2316 deletions
+1 -2
View File
@@ -2,11 +2,10 @@ import { AttachmentAPI } from "timi-web";
import type { BodyAreaValue, Customer } from "@/types/Customer";
export function getCustomerPhotoURL(customer?: Customer): string {
const attachment = customer?.attachmentList?.find(item => item.attachType === "PHOTO") || customer?.attachmentList?.[0];
const attachment = customer?.attachmentList?.find(item => item.attachType === "PHOTO");
if (!attachment?.id) {
return "";
}
return AttachmentAPI.getReadURL(attachment.id);
}
-2
View File
@@ -6,7 +6,5 @@ export function getEventRecordPhotoURL(record?: EventRecord): string {
if (!attachment?.id) {
return "";
}
return AttachmentAPI.getReadURL(attachment.id);
}