docs: align project guidance with the modular application

This commit is contained in:
eezd committed 2026-10-25 20:47:55 +08:00
1 parent 3cd641a380
commit 8d62d07a13
11 files changed
+116 -6

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
---
name: v3-upsert-store
description: 调整 Pinia 共享状态
---
先读根 AGENTS.md 和现有 store。跨页面共享状态放 `web/src/pinia/stores/`,使用 Setup Store;页面表单和工作区临时状态留在模块。setup 外显式传入 pinia,不增加转发函数或重复镜像。认证变更通过 user store 更新会话代号,持久化仅保留已有明确需求。验证旧请求隔离与状态重置。