temp:临时备份,测试合并兼容性

This commit is contained in:
PingChuan
2025-11-20 20:36:42 +08:00
parent 2e604e8ede
commit b9fe57c5fa
12 changed files with 1310 additions and 36 deletions
+5 -3
View File
@@ -150,11 +150,13 @@ export default function ContractTemplateDetail() {
}; */
// 创建文件内容对象用于FilePreview组件
const fileContent = template.pdf_file_path ? {
// 优先使用原始文件路径(支持docx),如果没有则使用pdf_file_path
const previewPath = template.file_path || template.pdf_file_path;
const fileContent = previewPath ? {
title: template.title,
contractNumber: template.template_code,
// 使用pdf_file_path字段
path: template.pdf_file_path,
// 使用file_path以支持多种格式(docx/pdf
path: previewPath,
parties: {
partyA: {
name: '',