From 26989cc391a96cc36f93d3c7f0bceeb154258319 Mon Sep 17 00:00:00 2001
From: zhouyonggao <1971162852@qq.com>
Date: Wed, 17 Dec 2025 10:03:26 +0800
Subject: [PATCH] =?UTF-8?q?refactor(main):=20=E9=87=8D=E6=9E=84=E4=B8=BB?=
=?UTF-8?q?=E5=85=A5=E5=8F=A3=E4=BB=A3=E7=A0=81=E6=8F=90=E5=8D=87=E5=8F=AF?=
=?UTF-8?q?=E8=AF=BB=E6=80=A7=E5=92=8C=E5=8F=AF=E7=BB=B4=E6=8A=A4=E6=80=A7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 使用模块化架构替代内联常量和工具函数引用提升结构清晰度
- 统一调用外部 Api 服务封装,简化接口调用流程
- 优化字段元数据加载逻辑,支持缓存及异常处理恢复
- 重构树形选择器操作,提升选中状态处理的可靠性和性能
- 采用状态管理模块创建响应式状态,拆分表单验证规则实现
- 使用计算属性优化表单及导出相关的动态选项展示
- 重新实现异步数据加载函数,统一错误处理并清空异常状态
- 清理和合并废弃或重复代码,改善代码整洁度和可维护性
---
web/index.html | 2 +-
web/main.js | 1642 +++++++++++++---------------------------
web/main.refactored.js | 914 ----------------------
3 files changed, 523 insertions(+), 2035 deletions(-)
delete mode 100644 web/main.refactored.js
diff --git a/web/index.html b/web/index.html
index 2c5a219..00da11c 100644
--- a/web/index.html
+++ b/web/index.html
@@ -318,6 +318,6 @@
-
+