fix(frontend): 修复附件缩略图识别 & 弹窗换行显示

- 修复 isImageFile 通过文件后缀判断图片,解决编辑模式下缩略图不显示
- modal alert 系列支持 dangerouslyUseHTMLString,<br/> 换行生效
- 更新 showAttachmentDetail 换行
- 新增变更记录 docs/变更管理/code-adjust-record-2025-07-10-wuzilong.md
This commit is contained in:
zlwu committed 2025-07-10 13:59:41 +08:00
1 parent 3f9838e8f1
commit 1540bd1a1b
3 files changed
+254 -32

No files matched your search

@@ -0,0 +1,24 @@
# 2025-07-10 变更记录 (wuzilong)
> 更新时间:2025-07-10 10:30:00
## 修复内容
1. **web/src/views/hq/pm/repairOrder/index.vue**
- 优化 `isImageFile` 方法:在缺少 MIME Type 时通过文件名/URL 后缀判定图片类型,解决编辑模式下附件缩略图不显示的问题。
- 调整 `showAttachmentDetail` 详情字符串,使用标准 `<br/>` 换行符。
2. **web/src/plugins/modal.ts**
- 在 `alert/alertError/alertSuccess/alertWarning` 方法中添加 `dangerouslyUseHTMLString: true`,支持 HTML 换行展示。
## 影响范围
- 物业报修工单编辑/详情弹窗显示。
- 所有使用 `$modal.alert` 的提示框内容可正确解析换行。
## 测试情况
- [x] 编辑工单时,图片附件正常显示缩略图。
- [x] 点击附件详情,弹窗内容按行分隔显示。
- [x] 其它模块使用 `$modal.alert` 的弹窗显示正常。
---