优化: AR-10 想法→灵感文案统一(13 文件)

用户可见文案 + 后端错误信息 + LLM 工具描述/系统提示词 + store toast + 注释统一改灵感:
i18n zh-CN(ideas/aiTool/projectDetail) + idea.rs 错误 + tool_registry/prompt LLM + stores/project toast + api/views 注释
en 版待定(用 Ideas/Idea)+ docs/crates 注释低优先本轮略;cargo check/vue-tsc 0 error
This commit is contained in:
2026-06-14 16:26:32 +08:00
parent d6cd2805be
commit 65c475b549
13 changed files with 50 additions and 50 deletions

View File

@@ -142,12 +142,12 @@ function createStore() {
}
}
// ── 想法 CRUD ──
// ── 灵感 CRUD ──
async function loadIdeas() {
try {
state.ideas = await ideaApi.list()
} catch (e: any) {
state.error = e?.toString() ?? '加载想法失败'
state.error = e?.toString() ?? '加载灵感失败'
}
}
@@ -157,7 +157,7 @@ function createStore() {
state.ideas.push(record)
return record
} catch (e: any) {
state.error = e?.toString() ?? '创建想法失败'
state.error = e?.toString() ?? '创建灵感失败'
return null
}
}
@@ -175,7 +175,7 @@ function createStore() {
await ideaApi.delete(id)
state.ideas = state.ideas.filter(i => i.id !== id)
} catch (e: any) {
state.error = e?.toString() ?? '删除想法失败'
state.error = e?.toString() ?? '删除灵感失败'
}
}
@@ -309,7 +309,7 @@ function createStore() {
type ProjectStore = ReturnType<typeof createStore>
let _storeInstance: ProjectStore | null = null
/** 项目/任务/想法/工作流 全局状态(单例,多组件复用同一 reactive 包装) */
/** 项目/任务/灵感/工作流 全局状态(单例,多组件复用同一 reactive 包装) */
export function useProjectStore(): ProjectStore {
if (_storeInstance) return _storeInstance
_storeInstance = createStore()