fix(web-admin): persist cleared vehicle/personnel photoUrls on save

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zlwuandCursor committed 2026-08-02 10:40:04 +08:00
1 parent 5bf37f802e
commit c86eddac75
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -844,7 +844,7 @@ async function handleSubmit() {
personnelAffiliation: formData.personnelAffiliation,
status: formData.status,
remark: formData.remark || undefined,
photoUrls: formData.photoUrls || undefined,
photoUrls: formData.photoUrls ?? '',
certList: certList.value.map(c => ({
certId: c.certId,
certName: c.certName.trim(),
@@ -1003,7 +1003,7 @@ async function handleSubmit() {
loadCapacity: formData.loadCapacity,
vehicleStatus: formData.vehicleStatus,
remark: formData.remark,
photoUrls: formData.photoUrls || undefined,
photoUrls: formData.photoUrls ?? '',
personnelList: personnelList.value.map(p => ({
personnelId: p.personnelId,
personnelName: p.personnelName.trim(),
+1 -1
View File
@@ -1048,7 +1048,7 @@ async function handleSubmit() {
loadCapacity: formData.loadCapacity,
vehicleStatus: formData.vehicleStatus,
remark: formData.remark,
photoUrls: formData.photoUrls || undefined,
photoUrls: formData.photoUrls ?? '',
personnelList: personnelList.value.map(p => ({
personnelId: p.personnelId,
personnelName: p.personnelName.trim(),