From 13681003fb94bc17a840bdb7a68ba87d9556e7a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Tue, 1 Apr 2025 18:00:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=B3=A8=E9=87=8A=E8=A7=84=E8=8C=83=EF=BC=8C=E5=BC=BA=E8=B0=83?= =?UTF-8?q?=E6=B3=A8=E9=87=8A=E5=BA=94=E8=A7=A3=E9=87=8A=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E5=92=8C=E8=AE=BE=E8=AE=A1=E6=84=8F=E5=9B=BE=EF=BC=8C=E7=A6=81?= =?UTF-8?q?=E6=AD=A2=E6=8F=8F=E8=BF=B0=E4=BB=A3=E7=A0=81=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E6=88=96=E5=8E=86=E5=8F=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/copilot-instructions.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index dc0dc71..404a57c 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -15,6 +15,7 @@ This document outlines the core technical choices, coding conventions, and confi * All comments within the codebase **must be written in Chinese**. (代码中的所有注释**必须使用中文**。) * **注释应解释代码的“为什么”(设计意图、选择某方案的原因)或复杂逻辑/算法的“如何”,而不是解释“是什么”(重复代码功能)或“在哪里”(描述定义位置)。** * **严禁添加仅说明代码被移动、重构或提取到其他文件的注释。** 例如,避免 `// XxxState 接口已移至 types.ts` 或 `// 提取为 useXYZ composable` 这样的注释。依赖代码结构、类型系统和 IDE 功能(如 Go To Definition)来理解这些信息,而不是通过注释。Focus comments on the *logic* itself, not its location or history. + * **同样地,严禁添加描述代码是“新增”、“修改”、“临时”或标记其开发状态的注释。** 例如,避免 `// 新增功能`、`// (新增)`、`// 临时修复`、`// TODO: 优化`(除非 TODO 指向具体的技术债务或未完成的逻辑,而不仅仅是标记状态)等注释。注释的目标是解释代码的内在逻辑或设计决策,而不是其变更历史或当前状态。 ## 📦 UI Libraries & Components @@ -44,9 +45,9 @@ This document outlines the core technical choices, coding conventions, and confi * **Always** use `