From 031efe042ec970352bf986bac7b3cc6316e81fc5 Mon Sep 17 00:00:00 2001
From: Leo <98382335+gaoziman@users.noreply.github.com>
Date: Sun, 6 Jul 2025 19:01:45 +0800
Subject: [PATCH] =?UTF-8?q?docs(claude):=20=E4=BF=AE=E5=A4=8DVue=E7=BB=84?=
=?UTF-8?q?=E4=BB=B6=E4=BB=A3=E7=A0=81=E5=9D=97=E6=8E=92=E5=B8=83=E9=A1=BA?=
=?UTF-8?q?=E5=BA=8F=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 修正组件文件结构规范中的代码块排布顺序说明
- 将错误的 template → script → style 更正为 script → template → style
- 移除代码块语言标识避免ESLint解析错误
---
CLAUDE.md | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/CLAUDE.md b/CLAUDE.md
index 945b27f..3944f89 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -493,7 +493,8 @@ async function handleSubmit() {
await submitForm()
coiMsgSuccess('操作成功')
userDialogRef.value?.novaClose()
- } catch (error) {
+ }
+ catch (error) {
coiMsgError('操作失败')
}
}
@@ -552,7 +553,8 @@ async function handleSubmit() {
**所有Vue3组件必须严格按照以下顺序组织代码块**
### 组件代码块排布顺序
-```vue
+```
+
@@ -567,7 +569,7 @@ async function handleSubmit() {
```
### 强制要求
-- ✅ 必须按照 `template` → `script` → `style` 的顺序排布
+- ✅ 必须按照 `script` → `template` → `style` 的顺序排布
- ✅ 使用 `