fix(preflight): path 列改为普通文本,去掉 file:// 超链接
Excel 打开 SMB 路径超链接会弹「安全声明」,改为纯文本
This commit is contained in:
@@ -395,12 +395,6 @@ class PreflightService:
|
||||
if r.verdict in fills:
|
||||
for cell in ws[row_idx]:
|
||||
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))
|
||||
ws.auto_filter.ref = f"A1:{last_col}{ws.max_row}"
|
||||
|
||||
Reference in New Issue
Block a user