From d50c586f19b67c1d826f731f6b6ff68889bc8f02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E8=87=AA=E8=BE=BE?= <980324341@qq.com> Date: Fri, 9 Oct 2026 11:24:47 +0800 Subject: [PATCH] =?UTF-8?q?chore(=E7=98=A6=E8=BA=AB):=20=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E7=AB=AF=E6=B8=85=E6=8E=89=20115=20=E8=A1=8C=E5=BC=95=E7=94=A8?= =?UTF-8?q?=E4=B8=8D=E5=AD=98=E5=9C=A8=20handler=20=E7=9A=84=E6=B3=A8?= =?UTF-8?q?=E9=87=8A=E6=A8=A1=E6=9D=BF=E4=B8=8E=200-importer=20shim?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BrandConvertTab.vue 747 -> 633 行:两段注释掉的模板(模板管理 / 模板示例)引用的 10 个 handler 与 state(openTemplatePicker / saveCurrentTemplateAsDefault / removeCurrentTemplate / handleTemplateFileChange / downloadTemplateXlsx / downloadTemplateZip / templateInputRef / templateUploading / templateSavingDefault / templateDeleting)在本文件里一个都不存在—— 块外使用 0 次、const|function 声明 0 处,恢复出来直接报错,属真死码。连带删掉只服务于它们的 7 条 CSS 规则与组选择器里那条死成员(.btn-delete, + .template-download-row { 合并)。 另删 src/shared/api/digital-human.ts(1 行 re-export shim,0 个 importer)。 双证:npm test(node --test)762 例全绿、npx vue-tsc --noEmit rc=0; 自检残留 9 个死名各 0 次、注释与花括号配对、活类名 opt-btn/empty-option/btn-delete 未误伤。 没有采纳同轮审计给的「digital-human 类型模块 157 行可删」:java-modules.ts:17 在 export * 它, java-modules-reexport.test.ts 把它钉进再导出普查、modules-image-video.test.ts 真调其中函数—— 那份结论同段里既说「FE src 0 引用」又说「re-export 走 java-modules」,两句互相矛盾。 --- .../brand/components/BrandConvertTab.vue | 116 +----------------- frontend-vue/src/shared/api/digital-human.ts | 1 - 2 files changed, 1 insertion(+), 116 deletions(-) delete mode 100644 frontend-vue/src/shared/api/digital-human.ts diff --git a/frontend-vue/src/pages/brand/components/BrandConvertTab.vue b/frontend-vue/src/pages/brand/components/BrandConvertTab.vue index 1a453a64d..a58824368 100644 --- a/frontend-vue/src/pages/brand/components/BrandConvertTab.vue +++ b/frontend-vue/src/pages/brand/components/BrandConvertTab.vue @@ -36,44 +36,6 @@
暂无可用模板
- - - -
转换说明