去除无用功能,暂时注释

This commit is contained in:
2025-05-30 19:07:06 +08:00
parent c169d718c5
commit 6989ae389b
4 changed files with 180 additions and 193 deletions
@@ -24,25 +24,6 @@ export const meta: MetaFunction = () => {
// 将数据库模板转换为前端显示格式
function transformTemplate(template: ContractTemplate) {
// 模拟使用次数和评分(实际项目中可以从其他表获取)
/* const mockUsageCount = Math.floor(Math.random() * 2000) + 100;
const mockRating = (Math.random() * 1.5 + 3.5).toFixed(1);
// 根据模板属性确定类型
let templateType = '标准版';
if (template.is_featured) {
templateType = '推荐版';
} else if (template.description && template.description.includes('简化')) {
templateType = '简化版';
} else if (template.description && (template.description.includes('专业') || template.description.includes('大客户'))) {
templateType = '专业版';
} */
// 添加调试信息
console.log('原始模板数据:', template);
console.log('file_path:', template.file_path);
console.log('file_format:', template.file_format);
return {
id: template.id.toString(),
title: template.title,