fix(preflight): path 列改为普通文本,去掉 file:// 超链接

Excel 打开 SMB 路径超链接会弹「安全声明」,改为纯文本
This commit is contained in:
ali
2026-11-19 09:16:16 +08:00
parent 17b24fb5ce
commit 46a54aeaeb
-6
View File
@@ -395,12 +395,6 @@ class PreflightService:
if r.verdict in fills: if r.verdict in fills:
for cell in ws[row_idx]: for cell in ws[row_idx]:
cell.fill = fills[r.verdict] cell.fill = fills[r.verdict]
try:
link = ws.cell(row=row_idx, column=1)
link.hyperlink = path.as_uri()
link.style = "Hyperlink"
except (ValueError, OSError):
pass
last_col = get_column_letter(len(cls.HEADERS)) last_col = get_column_letter(len(cls.HEADERS))
ws.auto_filter.ref = f"A1:{last_col}{ws.max_row}" ws.auto_filter.ref = f"A1:{last_col}{ws.max_row}"