From 1540e4428872826b1ef2a738cbad552b360c0aec Mon Sep 17 00:00:00 2001 From: sion123 <450702724@qq.com> Date: Sun, 16 Nov 2025 22:11:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .cursor/rules/backend.mdc | 3 +++ .cursor/rules/vue.md | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.cursor/rules/backend.mdc b/.cursor/rules/backend.mdc index 8ba3f5006a..102be8e118 100644 --- a/.cursor/rules/backend.mdc +++ b/.cursor/rules/backend.mdc @@ -7,6 +7,9 @@ globs: **/*.java, **/*.xml, **/*.yaml, **/*.yml ## 项目架构 +## 代码规划 +- 代码简洁易于人类阅读 + ### 模块结构 - `yudao-dependencies`: Maven 依赖版本统一管理 - `yudao-framework`: 框架拓展组件(技术组件) diff --git a/.cursor/rules/vue.md b/.cursor/rules/vue.md index 25ec4cb2cd..cd64f4b68e 100644 --- a/.cursor/rules/vue.md +++ b/.cursor/rules/vue.md @@ -5,6 +5,9 @@ globs: **/*.vue, **/*.ts, components/**/* # Vue.js 最佳实践 +## 代码规划 +- 代码简洁易于人类阅读 + ## 组件结构 - 优先使用组合式 API 而非选项式 API - 保持组件小巧且功能专注 @@ -77,7 +80,6 @@ globs: **/*.vue, **/*.ts, components/**/* - 实现完整的错误处理 - 规范事件处理机制 - 为复杂逻辑添加文档注释 -- 代码简洁易于人类阅读 - 文件名使用mutiword 示例 'ExamplePage' ## 构建与工具链