diff --git a/server/src/main/java/cn/keking/service/impl/OfficeFilePreviewImpl.java b/server/src/main/java/cn/keking/service/impl/OfficeFilePreviewImpl.java index 1bddbbe4..82b1191f 100644 --- a/server/src/main/java/cn/keking/service/impl/OfficeFilePreviewImpl.java +++ b/server/src/main/java/cn/keking/service/impl/OfficeFilePreviewImpl.java @@ -64,7 +64,7 @@ public class OfficeFilePreviewImpl implements FilePreview { return XLSX_FILE_PREVIEW_PAGE; } if (suffix.equalsIgnoreCase("csv")) { - model.addAttribute("pdfUrl", KkFileUtils.htmlEscape(url)); + model.addAttribute("csvUrl", KkFileUtils.htmlEscape(url)); return CSV_FILE_PREVIEW_PAGE; } }